<html>
<meta http-equiv="Content-Type" Content="text/html; charset=utf-8" />

<head>
	<title>zzz :: Dev Page</title>
	
<style type="text/css">

	a:link		{ color: 0x000080 }
	a:visited	{ color: 0x000080 }
	a:active	{ color: 0x000080 }
	a:hover		{ color: 0x008080 }
	
	table
	{
		color: 0x000000;
		background: white;
		font-family: verdana, tahoma, arial;
		font-size: 8pt;
	}
	
</style>


<script>


    /*sicuster - 웹페이지 오류메시지 중 이 개체가 이 메소드를 지원하지 않거나 속성이 없다고 하면 일단 
      함수 철자 검사 해서 틀린것이 없는지 확인 
    */

    //var rrr;


    function DrawPolygon() {
		var x, y, url
		x = "196475.5570"
		y = "451249.5753"
		url = "D:\\11.shp"
		var data=x+"^"+y+"^"+url
		var id = zzz.GetGeometry("Point", data);
		var string = id
		zzz.SetDrawInfo("Color", "255^0^0^150");
		zzz.DrawGeometry("", string);
   }
    
    function sleep(milliseconds) {
        var start = new Date().getTime();
        for (var i = 0; i < 1e7; i++) {
            if ((new Date().getTime() - start) > milliseconds) {
                break;
            }
        }
    }


    function Makelist(x)
    {
        if (rrr == "") {
            rrr = x;
        
        } else {
            rrr = rrr + "^" + x;

        }
    }
    
    function Makelist3(x,y,z)
    {
        if (rrr == "") {
            rrr = x + "^" + y + "^" + z;

        } else
         {
             rrr = rrr + "^" + x + "^" + y + "^" + z;
        
        }

    }

    var gid = "";

    function EventOnLayerLoad(strLayerName, bOK) {

        //alert(strLayerName + ":" + bOK);
        //zzz.LayerFit(strLayerName);

        //alert(zzz.LayerGetBound(strLayerName));
        //alert(zzz.LayerGetBound("terrain"));
        
        
    }
    function EventOnUpdateGeometry(gid) {
        //alert(gid);
//         zzz.ObjectSelectedEdit("PBuildingPolygon", gid);
//         zzz.ObjectSelectedEdit("alpah", "0.7");

        zzz.ObjectEdit("build", "id1", "PBuildingPolygon", gid);
        zzz.ObjectEdit("build","id1","alpah", "0.7");

    }

    function Test_GetCentroid(gid) {

        zzz.DrawGeometry("gid", gid);
        var ccc = zzz.GetCentroid("", gid);


        var data = "1^ffff^" + ccc + "^100";
        
        zzz.DrawText("layer0", "", data);

    
    }

    function Test_Avgslope(gid) {
        //zzz.AnalysisSlopeStartEx("gid", gid);

        //zzz.AnalysisAvgSlopeInfo("shape", "path", "F:\\work\\proj\\wonzoo\\lb10_el_cntr\\lb10_el_cntr.shp");
        //zzz.AnalysisAvgSlopeInfo("terrain", "", "");
        //zzz.AnalysisAvgSlopeInfo("gid", "", "");
        alert(zzz.AnalysisAvgSlopeStart("gid", gid));
        alert(zzz.AnalysisAvgSlopeGetInfo("Ratio"));
        alert(zzz.AnalysisAvgSlopeGetInfo("Degree"));
        alert(zzz.AnalysisAvgSlopeGetInfo("Area"));

    }
    


    function Test_GeoBuffer(x, y, z) 
    {
        var re = x + "^" + y + "^100";
        var re2 = zzz.GetGeometryData("BufferCircle", re);
        //var re2 = zzz.GetGeometryData("BufferRect", re);
        var gid = zzz.GetGeometry("poly2d", re2);
        zzz.DrawGeometry("gid", gid);
        //alert(re2);

    }

    var geoState = 0;
    var geoGid1;

    function Test_GeoInter2(gid) {
    
        //zzz.RedrawMap();
        geoState = 0;
        zzz.SetDrawInfo("Color", "255^255^0^255");
        zzz.DrawGeometry("gid", gid);
        zzz.SetDrawInfo("Color", "0^255^0^255");
        zzz.DrawGeometry("gid", gid);
        zzz.SetDrawInfo("Color", "0^0^255^255");
        zzz.DrawGeometry("gid", gid); 
        zzz.RedrawMap(); 
    }
    function Test_GeoInter(gid) {

        if (geoState == 0) {

            geoState = 1;

            geoGid1 = gid;


        } else {

            zzz.RedrawMap();

            geoState = 0;

            var gid2 = zzz.GetGeometryOperation("Intersect", geoGid1, gid);


            zzz.SetDrawInfo("Color", "255^0^0^255");
            zzz.DrawGeometry("gid", geoGid1);

            zzz.SetDrawInfo("Color", "255^255^0^255");
            zzz.DrawGeometry("gid", gid);

            zzz.SetDrawInfo("Color", "255^0^255^255");
            zzz.DrawGeometry("gid", gid2);

        }
    
    }
    


    function Test_Geometry(gid) {

        //         alert(zzz.GetGeometryType(gid));
        //alert(zzz.GetGeometryData("", gid));


        //alert(zzz.GetGeometryData("", gid));

        //var ppp = zzz.GetGeometryData("bu", gid);


        //zzz.DrawGeometry("gid", gid);


        //alert(ppp);
        // 
        // 
        //         var poly = ppp;
        // 
        // 
        //         var gid2=zzz.GetGeometry("Poly2D", poly);
        //         zzz.SetDrawInfo("Color", "255^0^0^128");
        //         zzz.SetDrawInfo("PolygonMode", "Both");
        //

    }
    

    

    function EventOnPickGeometry(gid) {

        //zzz.TerrainEdit("", "add", "GID", id, 10, "");
        //zzz.TerrainEdit("",T "avg", "GID", id, 10, "");


//         layerName = "img";
//         //url = "G:\\bound.shp";
//         url = "";
//         zzz.LayerMake(layerName, 11, url);
//         //zzz.LayerTexture(layerName, "G:\\seoul_indexmap_20100204.jpg", 0, 0);
//         zzz.LayerPolygonMode(layerName, "Both");
//         //zzz.LayerCenterInfo(layerName, "Bound2D","0;0;0;0;");
// 
//         zzz.LayerColor(layerName, 255, 0, 0, 128);
//         zzz.LayerColor2(layerName, 255, 255, 0, 128);
// 
//         zzz.LayerGeometry(layerName, "", id);
// 
// 
//         zzz.LayerLoad(layerName);
// 
// 
//         zzz.MouseMode("Edit2DMove");


        // 건물

        //Test_Young(gid);
        //Test_DrawRoad(gid);
        //Test_DrawBuilding(gid);
        //Test_TerrainEdit(gid);

        if (gid < 3) {

            zzz.AnalysisAvgSlopeInfo("gid", "", gid);
            zzz.DrawGeometry("", gid);
        } else
         {
             Test_Avgslope(gid);
        
        }


        
        
      

        //zzz.TerrainEdit("", "avg", "GID", id, 10, "");



        //Test_Geometry(gid);
        //Test_GeoInter2(gid);
        //Test_GetCentroid(gid);
        



//         zzz.MouseModeOption("Edit2DGeometry", "gid", gid);
//         zzz.MouseMode("Edit2DGeometry");

        //alert(zzz.GetArea("gid", gid));



    }

    var g_young_count = 1;

    var g_area1 = 0;
    var g_area2 = 0;

    function Test_Young(gid) 
    {
        if (g_young_count == 1) {
            g_young_count = 2;
            zzz.DrawGeometry("gid", gid);


            re = zzz.GetArea("gid", gid);


            g_area1 = re;
            //alert(re);
            
            

        } else {
        g_young_count = 1;

        Test_DrawBuilding(gid);

        re = zzz.GetArea("gid", gid);
        g_area2 = re;


        alert(g_area2 / g_area1);
        
            
        
        }
    }

    function Test_DrawText(x, y, z) {
        // Count;block;ID^SymbolID^Text^fX^fY....block2;

//         var data = "1;;id^0^이런^" + x+"^" + y;
//         zzz.LocateSymbolTextWithURL(data);


        zzz.SetDrawInfo("color", "255^0^0^128");
        zzz.SetDrawInfo("color2", "255^255^0^255");
        
        zzz.SetDrawInfo("textsize", "16");
        zzz.SetHeightInfo("Depth", "false");
        zzz.SetHeightInfo("HeightMode", "world");
        zzz.SetHeightInfo("offset", "1");
        
         var data = "1^이런식^" + x + "^" + y + "^" + z;
         zzz.DrawText("text", "", data);

//url ^ width ^ height ^ textMode("Right", "Up") ^ heightMode("Terrain", "None") ^ offset & bDepth("true", "false") ^ x ^ y ^ z ^ text

        //var data = "F:\\work\\doc\\old\\cyclesafe.png^32^32^UP^Terrain^1^false^" + x + "^" + y + "^" + z + "^이런식";
        //var data = "F:\\work\\doc\\old\\cyclesafe.png^32^32^UP^Terrain^1^false^" + x + "^" + y + "^" + z + "^이런식";
        //zzz.DrawTextIcon("icon", "", data);

        //url ^ width ^ height ^ textMode("Right", "Up","CenterRight") ^ heightMode("Terrain", "None") ^ offset & bDepth("true", "false") ^ id ^x ^ y ^ z ^ text
        //var data = "F:\\work\\doc\\old\\cyclesafe.png^32^32^CenterRight^Terrain^1^true^id100^" + x + "^" + y + "^" + z + "^글자내용";
        //zzz.DrawTextIcon("icon", "id", data);
        
        

    }
    
    function Test_DrawBill(x,y,z)
    {
        //zzz.DrawBillBoard("bill", "", x, y, 500, 32, 32, true, true, true);
        zzz.DrawBillBoard("bill", "F:\\doc\\Talknow-Downloads\\marker.png", x, y, z, 32, 32, true, true, true);
        //zzz.DrawBillBoard("bill", "F:\\work\\doc\\old\\cyclesafe.png", x, y, z, 32, 32, true, true, true);
        
        //void CIMap3DActiveXCtrl::DrawBillBoard(LPCTSTR strLayerName,LPCTSTR strURL,FLOAT x,FLOAT y,FLOAT z,FLOAT fWidth,FLOAT fHeight,VARIANT_BOOL bDepthEnable, VARIANT_BOOL bAutoEnable,VARIANT_BOOL bBaseOnTerrain)

    }


    function Test_DrawRoad(gid)
    {

        var matID = 1;
        var numline = 4;
        var width = 3;
        var tileheight = 3;
        var height = 2;
        var centerline = 1;
        var re = gid + "^" + matID + "^" + numline + "^" + centerline + "^" + width + "^" + tileheight + "^" + height;
        zzz.DrawRoad("road", "", re);


    }

    function Test_DrawBuilding(gid) {

        var numFloor = 10;
        var FloorHeight = 3.5;
        var tex = "";
        var re = "id1^"+gid + "^" + numFloor + "^" + FloorHeight + "^" + tex;
        //var re = gid + "^" + numFloor + "^" + FloorHeight + "^" + tex;
        //zzz.DrawBuilding("build", "pattern", re);
        zzz.DrawBuilding("build", "patternID", re);


    }

    function EventOnCameraZoom() 
    {
        alert(zzz.GetScreenCenter());
    }
    function EventOnCameraRotate() {
        alert(zzz.GetCamYaw());
    }

    function EventOnCameraMove() {
        alert(zzz.GetCamYaw());
    }

    function EventOnBusNaviClickEnd() {

        zzz.DlgVisible("BusNavi", true);
    }

    function EventOnObjClick(layerName, id) {

        //Test_Popup();

        alert(layerName + ":" + id);


//         var re = zzz.ObjectSelectedGetInfo("Bound");
//         alert(re);


        //zzz.ObjectSelectedEdit("Alpah", "0.5");
    }

    function EventOnIconClick(layerName, id) {


        alert(layerName+":"+id);
    }
    
    function EventOnPickPointNormal(x, y, z, nx, ny, nz) 
    {

        var re = x + "^" + y + "^" + z + "^" + nx + "^" + ny + "^" + nz;


        //alert(re);
        //zzz.AnalysisProspective("texture", "G:\\down\\window01-1.png");

        //zzz.AnalysisProspective("size", "10^5");
        //zzz.AnalysisProspective("start", re);


        //zzz.AnalysisVisibilityStart(x, y, z, nx, ny, nz);

        //zzz.AnalysisSlopeStart(x, y, z, nx, ny, nz);

        Test_Drawbox(x, y, z, nx, ny, nz);
        

    }



    function EventOnPickPoint(x, y, z) 
    {
        //alert(z);

        //zzz.BusNaviLinkClick(x, y, z);




       // zzz.BusNaviLinkClick(x, y, z);

        //Test_Vis(x, y, z);
        
        //zzz.MouseModeOption("PickPoint","Clear","");


        //Test_SideLight(x, y, z);

        //zzz.AnalysisAltitudeStart(z);


//         re =x+"^"+y;
//         z = zzz.GetHeight("terrain",re);
        
        //Test_SingleModel2(x, y, z);

        //Test_DrawBill(x,y,z);


        //Test_DrawText(x, y, z);


        //alert(zzz.GetHeight("terrain", x + "^" + y));


//         zzz.CamPos(x, y, z+10);
// 
//         zzz.CameraRotateByAngle(45, -45);

        //Test_GeoBuffer(x, y, z);


            //Test_pick_2d(x,y);
        

    }

    function Test_pick_2d(x, y) {

        var data = "OBJECTID^" + x + "^" + y;

        re = zzz.GetPickObject("", data, "2d", "");
        alert(re);

        var re2=re.split('^');
        
        // re=layer^idfield^id;
        //re = "biotop^OBJECTID^35169";
        re = re2[0] + "^OBJECTID^" + re2[1];
        alert(re);
        
        var gid = zzz.GetGeometry("LayerID", re);
// 
//         alert(gid);
// 
        zzz.SetDrawInfo("PolygonMode", "both");
        zzz.SetDrawInfo("Color2", "0^255^0^255");
        zzz.DrawGeometry("gid", gid);

        alert(zzz.GetGeometryData("", gid));

        return;


        var prop;
        if (re2[0] == "elect") 
        {
            prop=zzz.GetShpData("F:\\work\\proj\\seoul2010\\envi\\elect_2006.shp", "OBJECTID", re2[1]);

        } else if(re2[0]=="tem")
                {
                    prop = zzz.GetShpData("F:\\work\\proj\\seoul2010\\envi\\tem_2006.shp", "OBJECTID", re2[1]);

        } else if(re2[0]=="lu")
        {
            prop = zzz.GetShpData("F:\\work\\proj\\seoul2010\\envi\\lu_2010.shp", "OBJECTID", re2[1]);
        
        } else if(re2[0]=="biotop"){

            prop = zzz.GetShpData("F:\\work\\proj\\seoul2010\\envi\\biotop2010.shp", "OBJECTID", re2[1]);

        }

        alert(prop);
        
        
        
        


        /*
        *	
        ---------------------------
        Windows Internet Explorer
        ---------------------------
        OBJECTID^2;GU_CDE^110;GU_NAM^종로구;ARA^2.40200000000e+001;ADM_NUM^1.90000000000e+001;UE_QA_1M^1.49595292000e+008;UE_QA_2M^1.35556572000e+008;UE_QA_3M^1.26538667000e+008;UE_QA_4M^1.25701995000e+008;UE_QA_5M^1.18224230000e+008;UE_QA_6M^1.31142332000e+008;UE_QA_7M^1.41587599000e+008;UE_QA_8M^1.60887228000e+008;UE_QA_9M^1.47017869000e+008;UE_QA_10M^1.18772754000e+008;UE_QA_11M^1.24179780000e+008;UE_QA_12M^1.39249714000e+008;UE_QA_SUM^1.61845403200e+009;BR_CUI_QUA^5.69499870000e+007;BR_CUI_RTO^3.65000000000e+000;Shape_Leng^2.84497172426e+004;Shape_Area^2.39858739120e+007;
        ---------------------------
        확인   
        ---------------------------

         */


    }

    var g_vis = "1";
    var g_vis1_x, g_vis1_y, g_vis1_z;
    var g_vis2_x, g_vis2_y, g_vis2_z;


    function Test_Vis(x, y, z) {

        if (g_vis == "1") {
            g_vis1_x = x;
            g_vis1_y = y;
            g_vis1_z = z;
            g_vis = "2";


        } else
         {
             g_vis = "1";
             g_vis2_x = x;
             g_vis2_y = y;
             g_vis2_z = z;

             //zzz.AnalysisSlopeStart(g_vis1_x, g_vis1_y, g_vis1_z, g_vis2_x, g_vis2_y, g_vis2_z);
             zzz.SetDrawInfo("color", "0^255^0^192");
             //zzz.AnalysisVisibilityInfo("Pov", "2DCalc");
             zzz.AnalysisVisibilityStart(g_vis1_x, g_vis1_y, g_vis1_z, g_vis2_x, g_vis2_y, g_vis2_z);



        
        }
    
        
    }

    function Test_SideLight(x, y, z) {
        var lightx = -2.5;
        var lighty = 0;
        var lightz = 9.5;
//         var lightx = 0;
//         var lighty = 0;
//         var lightz = 0;



        var theta = 30;
        var modelpath = "";
        var modelpath = "C:\\Program Files\\KSIC\\IntraMap3DActiveX4\\rsc\\SideTree\\SL1_01.3DS";
        


        rrr = "";
        Makelist3(x, y, z);
        Makelist3(lightx, lighty, lightz);
        Makelist(theta);
        Makelist(modelpath);

        zzz.LightMode("Night", "");


        zzz.SetDrawInfo("Color", "255^255^0^32");

        zzz.DrawSideLight("SideLight", "", rrr);


        zzz.LayerFit("SideLight");

    }

    function Test_Drawbox(x, y, z, nx, ny, nz) {

//         var sx = 10;
//         var sy = 10;
//         var sz = 0.5;
//        var type = "face1";

        var sx = 10;
        var sy = 40;
        var sz = 10;
        var type = "face6";
//        var type = "face4";
        
        //var re = x + "^" + y + "^" + z + "^" + nx + "^" + ny + "^" + nz + "^"+sx+ "^"+sy+ "^"+sz;

        rrr = "";

        Makelist3(x, y, z);
        Makelist3(nx, ny, nz);
        Makelist3(sx, sy, sz);


        zzz.DrawBox("box", type, rrr);


    }

    


	
	//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	var nType = 4;		// 도로
	//var nType = 9;		// 일조권




	function CamFit() {
	    zzz.CamFit();
	    //zzz.CameraRotateByAngle(45, -88);
	    //zzz.CameraRotateByAngle(0, -45);
	    //alert(zzz.GetScreenCenter());
	 }
	
	function RenderTypeSolid() 	{		zzz.RenderTypeSolid();	}
	function RenderTypeWire() 	{		zzz.RenderTypeWire();	}
	
	function ModeArea()	{   zzz.MouseMode("area");	}
	function ModeRotate() { zzz.MouseMode("camera"); }
	function ModeDist() { zzz.MouseMode("dist"); }



	function ModePickobj() {

	    zzz.MouseModeOption("Pickobj", "KeepSelected", "on");
	    zzz.MouseMode("Pickobj");
	}

	
	function CamNorth() {zzz.CamSet("NorthView", "");}
	
	function CamPos() {
	    var re = zzz.GetCameraPosition();
	    
	    alert(re);

	    var re2 = re.split(',');

	    g_cam_x = re2[0];
	    g_cam_y = re2[1];
	    g_cam_z = re2[2];



	 }


	 function BuildingShow() {
	     zzz.LayerVisibleType("grid", "", true);
	     zzz.LayerVisibleType("scene", "", true); 
	 
	 }
	 function BuildingHide() {
	     zzz.LayerVisibleType("grid", "", false);
	     zzz.LayerVisibleType("scene", "", false); 
	 }
	 
    
    
    function TerrainShow() { zzz.LayerVisible("terrain", true); }
    function TerrainHide() { zzz.LayerVisible("terrain", false); }

    var axisMode = "world";
    var setMode = "Offset";


    function ObjMoveX() {
        //zzz.ObjectSelectedPos(false, 100, 100, 0);
        zzz.ObjectSelectedPosEx(axisMode, setMode, "", 10, 0, 0);
    }

    function ObjMoveY() {
        //zzz.ObjectSelectedPos(false, 100, 100, 0);
        zzz.ObjectSelectedPosEx(axisMode, setMode, "", 0, 10, 0);
    }

    function ObjMoveZ() {
        //zzz.ObjectSelectedPos(false, 100, 100, 0);
        zzz.ObjectSelectedPosEx(axisMode, setMode, "", 0, 0, 10);
    }

    function ObjRemove() {
        zzz.ObjectSelectedRemove();
    }

    //var axisMode = "Local";

    function ObjRotX() {
        //zzz.ObjectSelectedRotate(true, 10, 0, 0);
        zzz.ObjectSelectedRotateEx(axisMode,setMode, "XAXIS", 10);
        
    }

    function ObjRotY() {
        //zzz.ObjectSelectedRotate(true, 0, 10, 0);
        zzz.ObjectSelectedRotateEx(axisMode,setMode, "YAXIS", 10);
        
    }

    function ObjRotZ() {
        //zzz.ObjectSelectedRotate(true, 0, 0, 10);
        zzz.ObjectSelectedRotateEx(axisMode,setMode, "ZAXIS", 10);
        
    }

    function ObjRotInit() {
        zzz.ObjectSelectedRotateEx("Local","Set","ZAXIS",0);
    }


    function ObjScale() {
        zzz.ObjectSelectedScale(2, 2, 2);

    }

    function ObjTexApply() {
        zzz.SetDrawInfo("Texture", "F:\\data\\My Pictures\\111.jpg");
        zzz.ObjectSelectedTexture("PatternBuilding", "");
    
    }
    



    var terra = "se";
    
    
    function Test_TerrainFit() {

//         layerName = "single";
//         zzz.LayerMake(layerName, 6, "E:\\work\\seoul\\2007년\\17차\\성동구 성수동 547-1일대 제1종지구단위계획안\\3.건축계획\\건물.3DS");
//         zzz.LayerSceneLayerType(layerName, "Single", "");
//         //zzz.LayerCenterInfo(layerName,"Vessle","");
//         zzz.LayerLoad(layerName);

//         layerName = "fitmodel";
//         zzz.LayerMake(layerName, "scene", "F:\\doc\\Talknow-Downloads\\land_fit01.3DS");
//         zzz.LayerSceneLayerType(layerName, "Single", "");
//         //zzz.LayerCenterInfo(layerName, "Vessle", "");
//         zzz.LayerLoad(layerName);
// 
// 
//         zzz.TerrainFitModel("ff", "F:\\doc\\Talknow-Downloads\\land_fit01.3DS");
// 
// 
// 
//         layerName = "fitmodel2";
//         zzz.LayerMake(layerName, "scene", "F:\\doc\\Talknow-Downloads\\land_fit02.3DS");
//         zzz.LayerSceneLayerType(layerName, "Single", "");
//         //zzz.LayerCenterInfo(layerName, "Vessle", "");
//         zzz.LayerLoad(layerName);
// 
//         zzz.TerrainFitModel("ff2", "F:\\doc\\Talknow-Downloads\\land_fit02.3DS");
// 
//
//         zzz.LayerFit(layerName);

//         layerName = "fitmodel";
//         zzz.LayerMake(layerName, "scene", "D:\\temp\\temp_user\\ksic\\Test_usn\\testlab_land\\Land_new.3DS");
//         zzz.LayerSceneLayerType(layerName, "Single", "");
//         //zzz.LayerCenterInfo(layerName, "Vessle", "");
//         zzz.LayerLoad(layerName);


        //url = "D:\\temp\\temp_user\\ksic\\Test_usn\\testlab_outside\\testlab.3DS";

        url = "C:\\zoon_work\\usn\\Land_new3.3DS";

        layerName = "fitmodel";
        zzz.LayerMake(layerName, "scene", url);
        zzz.LayerSceneLayerType(layerName, "Single", "");
        //zzz.LayerCenterInfo(layerName, "Vessle", "");
        zzz.LayerLoad(layerName);


        zzz.TerrainFitModel("ff", url);
        
        
        


    }
    function Test_SingleModel2(x,y,z) 
    {
        layerName = "single";
        var data=x+"^"+y+"^"+z;
        //zzz.LayerMake(layerName, "scene", "F:\\work\\seoul\\future_seoul_mody\\newgovenment\\NewGoverment.3DS");
        //zzz.LayerMake(layerName, "scene", "F:\\work\\seoul\\libFile\\AhT01.3DS");
        zzz.LayerMake(layerName, "scene", "E:\\seoul\\grid\\rsc_busstop\\BS.3DS");
        
        zzz.LayerSceneLayerType(layerName, "SINGLE", "");
        zzz.LayerCenterInfo(layerName, "Point", data);
        zzz.LayerLoad(layerName);
        zzz.LayerFit(layerName);

    }

//     function LayerLoad(layerName,type,rsc,maxdist,url) {
// 
//         //         layerName = "ysmodel3";
//         //         url = "http://61.41.17.238:8080/servicedata/Grid/3DModeling/YEOSU.grid";
//         //         zzz.LayerMake(layerName, "Grid", url);
//         //         zzz.LayerMaxDistance(layerName, 4000);
//         //         zzz.LayerRscPath(layerName, "RSC");
//         //         zzz.LayerLoad(layerName);
// 
//     }

    function Test_SingleModel() 
    {
        //사용자 모델 테스트
        //zzz.LayerMake("singleload", 6, "E:\\share\\SE001028.IOM");
        //zzz.LayerMake("singleload", 6, "E:\\NewgoerLand.iom");
        //zzz.LayerMake("singleload", 6, "E:\\투명처리\\2f.3DS");

        //zzz.LayerMake("singleload", 6, "E:\\투명처리\\win.3DS");

//         zzz.LayerMake("singleload", 6, "E:\\투명처리\\4f.3DS");
//         zzz.LayerSceneLayerType("singleload", "SINGLECENTER", "");
//         
//         
//         zzz.LayerLoad("singleload");
//         zzz.LayerFit("singleload");
        


        //zzz.MouseMode("PickObj");



//         var url;
// 
//         url = "1;E:\\share;222;Newgoverment_0.3DS"
//         
//         zzz.LayerMake("singleload", 6, url);
//         zzz.LayerSceneLayerType("singleload", "ListModelID","");
        //         zzz.LayerLoad("singleload");



//         layerName = "single";
//         zzz.LayerMake(layerName, 6, "E:\\SE009998.3DS");
//         zzz.LayerSceneLayerType(layerName, "Single", "");
//         zzz.LayerLoad(layerName);
// 
//

        //zzz.EnvSet("ModelCullType", "NONE");
        //zzz.EnvSet("ModelCullType", "CW");
        //zzz.EnvSet("ModelCullType", "CCW");
        layerName = "single";

        //url = "F:\\work\\seoul\\libFile\\AhT02.3DS"
        //url = "F:\\work\\seoul\\seoul_new_data\\(라) 가시화데이터\\rsc_3ds\\rsc_general\\S1062.3ds";
        //url = "E:\\NewGoverment.3DS";
        url = "G:\\down\\UJB5.3ds";

//         url = "C:\\3dsdumptest\\4\\medi419.3ds";
//         url = "C:\\3dsdumptest\\4\\medi408.3ds";
//         url = "C:\\3dsdumptest\\5\\UJB0.3ds";
//         url = "C:\\3dsdumptest\\5\\UJB41.3ds";
//         url = "C:\\3dsdumptest\\4\\medi418.3ds";
//         url = "G:\\down\\A06_2587.3DS";
        //url = "F:\\work\\proj\\yjb\\사면new\\output\\UJB43.3ds";
        url = "C:\\3dsdumptest\\rsc\\ryj43.3ds";
        url = "G:\\down\\서울시_3차원_축소영상\\축소단계별3DS\\40%축소_3DS\\A13_1.3ds";
        url = "G:\\down\\서울시_3차원_축소영상\\축소단계별3DS\\50%축소_3DS\\A13_1.3ds";
        url = "G:\\down\\서울시_3차원_축소영상\\축소단계별3DS\\60%축소_3DS\\A13_1.3ds";
        url = "G:\\down\\서울시_3차원_축소영상\\축소단계별3DS\\75%축소영상\\75%축소_3DS\\A13_1.3ds";
        

        //url = "G:\\down\\서울시_3차원_축소영상\\축소단계별3DS\\78%\\A13_5.3DS";
        //url = "G:\\down\\서울시_3차원_축소영상\\축소단계별3DS\\원본\\A13_1.3DS";
        url = "G:\\down\\서울시_3차원_축소영상\\축소단계별3DS\\원본\\A13_5.3DS";
        //url = "G:\\down\\서울시_3차원_축소영상\\축소단계별3DS\\78%\\A13_1.3DS";
        //url = "G:\\down\\서울시_3차원_축소영상\\축소단계별3DS\\87.5\\A13_1.3DS";
        //url = "G:\\down\\서울시_3차원_축소영상\\축소단계별3DS\\78% - 복사본\\A13_5.3DS";
        //url ="G:\\down\\서울시_3차원_축소영상\\축소단계별3DS\\78%\\A13_5.3DS";
        //url = "G:\\down\\서울시_3차원_축소영상\\축소단계별3DS\\40%축소_3DS\\A13_5.3ds";
        //url = "G:\\down\\서울시_3차원_축소영상\\축소단계별3DS\\50%축소_3DS\\A13_5.3ds";
        //url = "G:\\down\\서울시_3차원_축소영상\\축소단계별3DS\\60%축소_3DS\\A13_5.3ds";
        //url = "G:\\down\\서울시_3차원_축소영상\\축소단계별3DS\\75%축소영상\\75%축소_3DS\\A13_5.3ds";


        //url = "G:\\down\\서울시_3차원_축소영상\\축소단계별3DS\\80%축소_3DS\\A13_5.3ds";

        url = "G:\\down\\H012294.3DS";

        //url = "G:\\down\\3.작업완료\\LSS_PARK_3D.shp";
        url = "G:\\down\\3.작업완료\\LSS_PARK_3D.shp^LOC";
        zzz.LayerMake(layerName, "scene", url);
        //zzz.LayerSceneLayerType(layerName, "SingleCenter", "");
        //zzz.LayerSceneLayerType(layerName, "ListModel", "");
        zzz.LayerSceneLayerType(layerName, "SHPPOINTTEXT", "");
        //zzz.LayerSceneLayerType(layerName, "Single", "");
        zzz.LayerHeightInfo(layerName, "Terrain", 10, 0);
        zzz.LayerColor(layerName,255,0,0,255);
        
        zzz.LayerLoad(layerName);
        zzz.LayerMaxDistance(layerName, 4000);
        zzz.LayerFit(layerName);
        
        alert(zzz.LayerGetBound(layerName));


//         layerName = "single";
//         url = "F:\\work\\seoul\\libFile\\AhT01.3DS";
//         //zzz.LayerMake(layerName, "scene", "F:\\doc\\Talknow-Downloads\\BdT01.3DS");
//         //zzz.LayerMake(layerName, "scene", "F:\\work\\kimpo\\101013\\3ds\\3ds_1f\\106006.3DS");
//         zzz.LayerMake(layerName, "scene", url);
//         
//         
//         
//         
//         //zzz.LayerMake(layerName, 6, "D:\\temp\\temp_user\\ksic\\seoul_test_0323_01\\주택01\\AhT01.3DS");
//         //zzz.LayerMake(layerName, "scene", "F:\\doc\\Talknow-Downloads\\expo_RSC\\expo.3DS");
//         
//         //zzz.LayerMake(layerName, 6, "D:\\src\\Intramap3D_OSG\\bin\\release\\resources\\road\\tree\\tree014.3DS");
//         zzz.LayerSceneLayerType(layerName, "SingleCenter", "");
//         //zzz.LayerSceneLayerType(layerName, "FILE", "");
//         
//         
//         
// 
//         zzz.LayerLoad(layerName);

//         zzz.LayerMake(layerName, 6, "F:\\work\\seoul_osg\\교총\\교총\\SE009999.3DS");
//         zzz.LayerLoad(layerName);


        //zzz.CamFit();
        
        

    }

    var cam;
    function LayerTree() {

        //var mapListPop = window.open('tree.html', 'mapListPop', 'width=300, height=420, status=no, menubar=no, scrollbars=yes, top=10');
        var mapListPop = window.open('tree.html', 'mapListPop', 'width=300, height=420, status=no, menubar=no, scrollbars=yes, left=0, top=10,zindex=100');
//         sleep(1000);
//         zzz.DlgSetOnTop("IEFrame", "layer - Windows Internet Explorer");
    }
    
    function LayerJspText() {


        /*
        Count^id1^text1^x^y^z^id2^text2^x^y^z...........
        */


        
        url = "http://localhost/1.jsp";
        layerName = "JspText";
        zzz.LayerMake(layerName, "grid", url);
        zzz.LayerGridLayerType(layerName, "JSPPointText");
        zzz.LayerMaxDistance(layerName, 4000);
        zzz.LayerGridBlockSize(layerName, 500);
        zzz.LayerHeightInfo(layerName, "Terrain", 0, 0);
        zzz.LayerLoad(layerName);
        
    }
    

    function Layer_Icon() {
//             layerName = "icon";
//         //url=count^type(reverved)^아이콘가로^아이콘세로^ID^네임^x^y^z^ID^네임^x^y^z^.........
//             url = "1^Click^40^30^id1^name1^260874^140080^12";
// 		zzz.LayerMake(layerName, "scene", url);
//         zzz.LayerSceneLayerType(layerName, "LISTICONNUMBER", "");
//         zzz.LayerMaxDistance(layerName, 500);
//         zzz.LayerLoad(layerName);
//         zzz.LayerFit(layerName);

//         layerName = "icon";
//         //type^iconpath^width^height^count^id^name^x^y^z.....
// 
//         url = "Click^iconpath^40^40^count^id^name^x^y^z....."
//         //url = "2^id1^name1^state1^30^60^289^1.6^400000^180000^0^id2^name2^state2^30^60^289^1.6^400000^180000^0"
// 
// 
//         /*
//          *	
//         count ^ id ^ name ^ state ^ 기온 ^ 습도 ^ 풍향 ^ 풍속 ^ x ^ y ^ z 
//          */
//         
//

        layerName = "weather";url = "";
        zzz.LayerMake(layerName, "scene", url);
        //zzz.LayerSceneLayerType(layerName, "ListIconMultiPath", "");
        zzz.LayerSceneLayerType(layerName, "LISTICON", "");
        //zzz.LayerSceneLayerType(layerName, "weather", "");

        zzz.LayerMaxDistance(layerName, 100000);

        //zzz.LayerDepthInfo(layerName, "off");
        //zzz.LayerHeightInfo(layerName, "World", 0, 1);
        
        
        zzz.LayerLoad(layerName);
        zzz.LayerFit(layerName);





//         layerName = "icon";
//         url = "click^http://30.30.30.33/1.png^40^40^2^id^name^x^y^z^id2^name2^x^y^z........"
//         /*
//         이벤트타입^리소스파일경로^가로^세로^리스트개수^id^name^x^y^z..... 
//         */
// 
//         zzz.LayerMake(layerName, "scene", url);
//         zzz.LayerSceneLayerType(layerName, "LISTICON", "");
//         zzz.LayerMaxDistance(layerName, 100000);
//         zzz.LayerLoad(layerName);
//         zzz.LayerFit(layerName);


//         layerName = "icon";
//         url = "count^none^40^40^http://ffffff^id^name^111.png^x^y^z^id2^name2^222.png^x^y^z........"
//         /*
//         *	
//         count^이벤트타입^가로^세로^기본리소스경로^id^name^파일이름^x^y^z..... 
//         */
// 
// 
//         zzz.LayerMake(layerName, "scene", url);
//         zzz.LayerSceneLayerType(layerName, "ListIconMultiPath", "");
//         zzz.LayerMaxDistance(layerName, 100000);
//         zzz.LayerLoad(layerName);
//         zzz.LayerFit(layerName);

//         cycleicon_url = "Click^http://175.196.64.85/cyclerent.png^20^20^2^1^강변역구의공원^208276.0^448642.0^0^2^청담대교북단밑^205886.0^447935.0^0";
//         zzz.LayerMake("cycle", "scene", cycleicon_url);
//         zzz.LayerSceneLayerType("cycle", "LISTICON", "");
//         zzz.LayerMaxDistance("cycle", 50000);
//         zzz.LayerHeightInfo("cycle", "World", 7, 0);
//         zzz.LayerDepthInfo("cycle", "off");
//         zzz.LayerLoad("cycle");
//         zzz.LayerFit("cycle");
        


    }


    function TextureUpdate() {
        zzz.LayerTextureUpdate();
    }    
    
    function Test_EditBuilding() {
        //         alert(zzz.ObjectSelectedGetInfo("PatternFloors"));
        //         alert(zzz.ObjectSelectedGetInfo("PatternFloorHeight"));

        
//         zzz.SetDrawInfo("Texture", "E:\\seoul\\grid\\rsc\\buildtype001.jpg");
//         zzz.ObjectSelectedTexture("PatternBuilding", "");
//

        //zzz.ObjectSelectedEdit("PBuildingProperty", "20^3.5");

        //var gid = zzz.ObjectSelectedGetInfo("PBuildingPolygon");
        var gid = zzz.ObjectGetInfo("build", "id1", "PBuildingPolygon");
        zzz.ObjectEdit("build", "id1", "alpah", "0.7");
        
        


         zzz.MouseModeOption("Edit2DGeometry", "gid", gid);
         zzz.MouseMode("Edit2DGeometry");

        
    
    }


    function Test_Popup() {
        var test = window.open("test_popup.html", "test", "width=600, height=600, scrollbars=no");

//         zzz.EnvSet("AutoFar", "off"); // CullSet 옵션이 적용되디록 Far옵션 자동계산 취소.
//         zzz.CamSet("MaxDistanceScale", "5");  // 카메라 이동 최대거리 조절
//         zzz.CullSet(1, 1000);
//         zzz.DlgVisible("CameraUI", true);
// 
// 
// 
//         //url = "F:\\work\\seoul\\libFile\\AhT02.3DS";
//         //url = "c:\\AhT02.3DS";
// 
//         url = "F:\\work\\yjb\\지하상가 서부광장 JP12\\Under1.3DS";
// 
//         zzz.LayerMake("test", "scene", url);
//         zzz.LayerSceneLayerType("test", "single", "");
//         zzz.LayerMaxDistance("test", 4000);
//         zzz.LayerLoad("test");
// 
// 
//         url = "F:\\work\\yjb\\지하상가 서부광장 JP12\\Under2.3DS";
//         zzz.LayerMake("test", "scene", url);
//         zzz.LayerSceneLayerType("test", "single", "");
//         zzz.LayerMaxDistance("test", 4000);
//         zzz.LayerLoad("test");
// 
// 
// 
// 
//         zzz.CamFit();

    }

    var g_bool = true;
    function LayerToggle(layerName) {



//         g_bool = !g_bool;
// 
//         zzz.LayerVisible(layerName, g_bool);

        var re = zzz.LayerToggle(layerName);
        //var re = zzz.LayerGetVisible(layerName);
        //alert(re);
        zzz.LayerTextureUpdate();
        
    }
    
    
    function Test1() {
        Test_AdminBound();
    } // end of test1


    function Test_Naviline() {
        //url = "F:\\doc\\Talknow-Downloads\\네비\\gaedo.shp";
        //url = "http://30.30.30.85/yeosoo/shp/guemodo.shp";
        //url = "F:\\백야도.shp";
//        url = "F:\\work\\ty\\bridgeShape\\brige.shp";
//         url = "F:\\work\\yeasoo\\네비\\산단지역.shp";
//         url = "F:\\work\\yeasoo\\네비\\소호요트경기장.shp";
        //url = "F:\\work\\yjb\\shp\\kjc.shp";
        //url = "F:\\work\\yjb\\shp\\kjc_a.shp";
        //url = "F:\\work\\yjb\\shp\\kjc_b.shp";

        //url = "F:\\work\\yjb\\ejb_kyung_3D\\ejb_kyung_3D.shp";
        //url = "F:\\work\\yjb\\ejb_kyung_3D_M\\ejb_kyung_3D.shp";
        //url = "F:\\work\\yjb\\ejb_kyung_3D_M\\ejb_kyung_3D.shp";
        //url = "F:\\work\\yjb\\ejb_kyung_3D_수정\\ejb_kyung_3D.shp";
        //url = "F:\\work\\yjb\\ejb_kyung_3D_버텍스제거\\ejb_kyung_3D.shp";
        //url = "G:\\KSIC Data\\SHP\\UFO\\4HOUR_CITY_3D.shp";
        url = "C:\\444.nav";
        //url = "D:\\temp\\temp_user\\ksic\\tongyoungtest\\navi\\LSS_PARK_3D.shp";
        //url = "D:\\temp\\temp_user\\ksic\\tongyoungtest\\navi\\FAMOUS_TOUR_3D.shp";
        //url = "D:\\temp\\temp_user\\ksic\\tongyoungtest\\navi\\4HOUR_CITY_3D.shp";
        //zzz.NaviInfo("mode", "ufo");
        zzz.NaviInfo("speed", "400");
        zzz.NaviInfo("OffsetHeight", "1000");
        zzz.NaviInfo("tilt", "45");
        
        zzz.NaviPath("file", url);
        //zzz.NaviInfo("model", "http://30.30.30.85/FIRE0011.3ds");
        //zzz.NaviInfo("model", "D:\\src\\1.os\\rsc\\Model\\3DS_BusR.3DS");
        //zzz.NaviInfo("model", "F:\\doc\\Talknow-Downloads\\UJBTR001.3DS");
        //zzz.NaviInfo("model", "http://30.30.30.85/UJBTR001.3DS");

        
        
        //zzz.NaviInfo("model", "D:\\src\\1.os\\rsc\\Model\\3DS_BusG.3DS");
        
        zzz.NaviPlay();
//         zzz.NaviStop();
//         zzz.NaviPause(true);
        
        
         
//         layerName = "img";
// 
//         zzz.LayerMake(layerName, "texture", url);
//         zzz.LayerColor(layerName, 0, 0, 255, 255);
//         zzz.LayerLineInfo(layerName, "", 3);
//         zzz.LayerLoad(layerName);
//         zzz.LayerTextureUpdate();
        
        

    }

    function Test_AnalysisStart() {
        //zzz.AnalysisSunlightInfo("Mode", "Receiver");
//         zzz.AnalysisSunlightInfo("Mode", "Caster");
        //          zzz.AnalysisSunlightInfo("Speed", "30");
        zzz.AnalysisSunlightInfo("TextColor", "255^0^0^255");
        zzz.AnalysisSunlightInfo("TextSize", "24");

          zzz.AnalysisSunlightStart(2010, 05, 24, 9, 0, 2010, 5, 24, 19, 0);


       // zzz.AnalysisAltitudeStart(100);

//         zzz.EnvSet("ComputeNearFar", "on");
//         zzz.SetDrawInfo("Color", "0^192^192^128");
//         zzz.AnalysisFloodInfo("speed", "20");
//         zzz.AnalysisFloodStart(40);

//        zzz.EnvSet("ComputeNearFar", "on");
        

//         var re = zzz.MovieRecordStart();
//         if (re != "OK") {
//         alert(re);
//         }

        //zzz.LayerTransformSave("single", "", "");
    }

    function Test_AnalysisEnd() {
        //zzz.AnalysisSunlightEnd();

        //zzz.AnalysisAltitudeEnd();

        //zzz.AnalysisFloodEnd();
        //zzz.EnvSet("ComputeNearFar", "off");

        zzz.AnalysisAvgSlopeEnd();

        //zzz.AnalysisSlopeEnd();

        //zzz.AnalysisProspective("End","");

        //zzz.MovieRecordEnd();

        //zzz.AnalysisVisibilityEnd();

        //zzz.LayerTransformRestore("single", "", "");
        
        
    
    }

    function Test_BusNavi() {



//         zzz.EnvDataSetName("seoul_test");
//         
//         FontSize = 25.0;
//         ColorR = 255;  ColorG = 255;   ColorB = 0;
//         MaxShowLevel = 20000.0;
// 
// 
//         zzz.BusNaviStopTextInfo(FontSize, ColorR, ColorG, ColorB, MaxShowLevel);
//        
//         //PTH 로딩
//         //zzz.BusNaviOpen("G:\\KSIC Data\\Seoul\\PTH\\1100061531.pth");
// 
//         FullR = 0; FullG = 255; FullB = 0;
//         SearchR = 0;SearchG = 0;SearchB = 255;
// 
//         zzz.BusNaviLineColor(FullR, FullG, FullB, SearchR, SearchG, SearchB);
// 
// 
//         zzz.DlgVisible("BusNavi", false);
// 
// 
//         zzz.BusNaviLineInfo("", "ByDistance", 15.0);
// 
//         //SHP 로딩
// 
//         //zzz.BusNaviOpen("G:\\KSIC Data\\SHP\\자전거도로\\Bike.shp");
//         //zzz.BusNaviOpen("G:\\KSIC Data\\SHP\\자전거도로\\자전거도로\\자전거정보입력합본_완료.shp");
//         //zzz.BusNaviOpen("G:\\KSIC Data\\SHP\\자전거도로\\cycle_tour\\cycle_tour.shp");       
//         //ShpFilter = "ROAD_NAME=4.19길02";
//         //zzz.BusNaviFilter(ShpFilter);
//         //zzz.BusNaviOpenSpeed("G:\\KSIC Data\SHP\\코스데이터\\6.투어코스\\CTBUS_2F_NIGHT_L.shp", 1000);
//         //zzz.BusNaviOpen("G:\\KSIC Data\\SHP\\코스데이터\\tourSHP\\Tour.shp");
//         zzz.BusNaviOpen("Y:\\wwwroot\\tongyong\\BusNavi\\383000206.shp");
//         //ShpFilter = "ROAD_NAME=덕수궁.정";
// 
//         //zzz.BusNaviFilter(ShpFilter);
//         //모델 로드
//         zzz.BusNaviModelLoad("G:\\KSIC Data\\3DS Model\\3차원서울시버스\\아바타(자전거포함)3ds\\SEAB0004.3DS");
        
        
        //zzz.BusNaviOpen("H:\\가마우지\\CTBUS_1F_DOSIM_L.shp");         
//                  x = 100; y = 100;
//                  Textsize = 20;
//                  r = 255; g = 255; b = 0;
//                  
//                  
//                 zzz.BusNaviHudInfo(x, y, Textsize, r, g, b);
//                  
//                  
//                  
//                 Textsize = 20;
//                 offset = 0;
//                 r = 255; g = 255; b = 255;
//                 zzz.BusNaviStopInfo("", Textsize, 0, r, g, b, true);
//                          
//                  
//                 zzz.BusNaviStopNames("stopnamelist");
//                 zzz.BusNaviSelect("id1", "id2");
//                          
//                  
//                 
//                 zzz.DlgVisible("BusNavi", true);
        
//                 x = 100; y = 100;
//                 Textsize = 20;
//                 r = 255; g = 255; b = 0;
//                  
//                  
//                 zzz.BusNaviHudInfo(x, y, Textsize, r, g, b);
//                 zzz.BusNaviPersonMode("3PersonMode"); 
                 
                 
//                 Textsize = 20;
//                 offset = 0;
//                 r = 255; g = 255; b = 255;
//                 zzz.BusNaviStopInfo("", Textsize, 0, r, g, b, true);
                
                //PTH ID         
                //id1 = "11250511007";   id2 = "11250561026";



//               // 버스 네비
//              stopnames = "31160521030^복합터미널*31160521028^군포차고지*31160521025^경포주유소앞(40025)*31160521018^삼성리*31160521005^안양베네스트골프장*31160521012^용호고등학교앞*31160521015^당동주공아파트*31160521017^당동쌍용아파트*31160511036^두산아파트입구*31160521022^당동우체국*31160511031^군포역*31160571018^1단지앞(40102)*31160571020^군포시청(40100)*31160551028^중앙공원*31160611027^문화예술회관(40141)*31160551018^장미아파트(40076)*31160551030^산본2동사무소*31160551027^구주공1단지(40073)*31160541015^삼성아파트입구(40067)*31160541017^금정역(40060)*31160541019^산본1동(40066)*31160541005^산본고가(40062)*31160541013^미도아파트(40061)*31041571016^명학초등학교(57039)*31042631025^명학대교*31042631022^주식회사효성*31042631023^전파연구소*31042651001^범계역*31042581021^동안구청*31042551006^샛별단지*31042581020^부림중학교*31042581019^공작럭키아파트*31042561003^관양중학교(56032)*31042561002^관양1동주민센터(56033)*31042571018^부림마을(56046)*31042571012^인덕원사거리인덕원역(56037)*31110521007^갈현동부대앞(37013)*31110521006^찬우물(37008)*31110521004^과천2단지3단지(37010)*31110531011^정부과천청사(37018)*31110531010^과천전화국(37017)*31110541002^과천역*31110541001^과천8단지9단지(37019)*31110511013^과천성당(37005)*31110551006^환경사업소(37026)*31110551003^선바위역(37023)*11220661043^식유촌마을(22288)*11220671016^양재동화물터미널(22300)*11220671024^시민의숲양재꽃시장(22297)*11220661055^교육개발원입구(22002)*11220661053^양재역(22004)*11230661012^뱅뱅사거리(22006)*11220521032^우성아파트(22008)*11230641035^강남역(22010)*11220541058^강남역(23285)* number == 54busid == 11220541058name == 강남역(23285)";
//              zzz.BusNaviStopNames(stopnames);
//              zzz.BusNaviOpen("G:\\down\\1100091032.pth");
// 
//              zzz.BusNaviSelect("31110551003", "11220671016");
//              zzz.DlgVisible("BusNavi", true);

             url = "http://210.90.46.79/3ddb/DX/servicedata_2010/03_shp/tourSHP/";

             zzz.BusNaviStopTextInfo(15, 255, 255, 0, 50000);
             zzz.BusNaviLineColor(254, 255, 115, 0, 255, 255);
             zzz.BusNaviLineInfo("", "ByDistance", "10");
             
             zzz.BusNaviOpen(url + "tour.shp");
             
             zzz.BusNaviLayerVisible("FULLPATH", false)


             zzz.BusNaviFilter("ROAD_NAME=1층버스도심순환");
             zzz.BusNaviLayerFit("FULLPATH");
             zzz.BusNaviModelLoad("http://210.90.46.79/3ddb/DX/servicedata_2010/3ds/SEAB0003.3DS");
//              zzz.BusNaviSpeed(80);
//              zzz.BusNaviHudInfo(0, 0, 0, 255, 255, 0);
//              zzz.BusNaviPersonMode(viewer);
//              zzz.BusNaviSelect(chk1[1], chk2[1]);


              

    }

    function Test_BusNaviSelect() {


        zzz.BusNaviPersonMode("3PersonMode");
        //NodeName 
        //id1 = "거제대교종점"; id2 = "도남동";
        //zzz.BusNaviStopNames("stopnamelist");
        zzz.BusNaviSelect("거제대교종점", "도남동");
        zzz.DlgVisible("BusNavi", true);
    }


    function Test_BusNaviInfo() {

        var Start = zzz.BusNaviGetStartNodeID();
        var End = zzz.BusNaviGetEndNodeID();

        alert(Start);
        alert(End);
    }

    function Test_AdminBound() {
                alert("Test_AdminBound1");
                zzz.TextScreenInfo("ADMINBOUND","300^300^1^^255^0^0^");
                zzz.AdminBoundInfo("", "C:\\test\\seoul.shp^SGG_CD^SGG_NM");
                zzz.DlgVisible("ADMINBOUND", true);
    }
    




    function Test_DrawBoundbox() 
    {
        var bb = zzz.LayerGetBound("singleload");

        zzz.SetDrawInfo("Color", "255^255^0^255");
        zzz.DrawBoundBox("", "", bb);

    }

    var g_dlg_state = true;
    function Test_Dlg() {

        zzz.DlgVisible("Navi", true);
        //zzz.DlgVisible("Elevation", true);

//         if (g_dlg_state) 
//         {
//             zzz.DlgUrl("indexmap", "C:\\jeju.png");
//             zzz.DlgLoad("indexmap");
//             //zzz.DlgVisible("indexmap", true);
// 
//         } else
//          {
//              zzz.DlgUrl("indexmap", "http://30.30.30.3/seoul/seoul_indexmap_20100204.jpg");
//              zzz.DlgLoad("indexmap");
//              //zzz.DlgVisible("indexmap", true);
//         
//         }
// 
// 
//         g_dlg_state = !g_dlg_state;
        
    
    }

    function Test_Movie() {
        // 일반건물
        //         layerName = "general";
        //         //url = "http://123.140.221.251:9000/DX/grid/SEOUL_SI_3DGENERAL_BUILDING_091103_roof.grid";
        //         url = "http://30.30.30.85/seoul/grid/test/SEOUL_SI_3DGENERAL_BUILDING_091103_roof.grid";
        // 
        //         zzz.LayerMake(layerName, 7, url);
        //         zzz.LayerRscPath(layerName, "rsc");
        //         zzz.LayerMaxDistance(layerName, 2000);
        //         zzz.LayerLoad(layerName);


//         url="E:\\01-20090929-153739-20090929-154216.wmv^fff^202494^440734^26^202538^440831^13^100^45^30^";
//         layerName = "movie";
//         zzz.LayerMake(layerName, 6, url);
//         zzz.LayerSceneLayerType(layerName, "MovieProjection", "");
//         zzz.LayerLoad(layerName);


        var path = zzz.GetDlgPath("save", "movie");
        //zzz.MovieInfo("Resolution", "640^480");
        //zzz.MovieInfo("codec", "mpg4");
        //zzz.MovieInfo("codec", "divx");
        zzz.MovieInfo("path", path);
        alert(zzz.MovieRecordStart());
        
        
        


    }


    function Test_Layer2() {
        // 일반건물
//         layerName = "general";
//         //url = "http://123.140.221.251:9000/DX/grid/SEOUL_SI_3DGENERAL_BUILDING_091103_roof.grid";
//         url = "http://30.30.30.85/seoul/grid/test/SEOUL_SI_3DGENERAL_BUILDING_091103_roof.grid";
// 
//         zzz.LayerMake(layerName, 7, url);
//         zzz.LayerRscPath(layerName, "rsc");
//         zzz.LayerMaxDistance(layerName, 2000);
//         zzz.LayerLoad(layerName);


        layerName = "yeo";
        url = "http://123.140.221.251:9000/DX/grid/3D_MODEL_3D_POLYGON.grid";
        zzz.LayerMake(layerName, 7, url);
        zzz.LayerRscPath(layerName, "rsc_yeo");
        zzz.LayerMaxDistance(layerName, 4000);
        zzz.LayerLoad(layerName);


    }

    function LoadGrid_Yeosu() {
//         layerName = "general";
//         url = "E:\\work\\yeosoo\\여수\\건물.grid";
// 
//         zzz.LayerMake(layerName, "grid", url);
//         zzz.LayerRscPath(layerName, "rsc");
//         zzz.LayerMaxDistance(layerName, 4000);
        //         zzz.LayerLoad(layerName);


//         layerName = "img";
//         zzz.LayerMake(layerName, "texture", "F:\\work\\yeasoo\\데이터\\3.행정구역\\Yeosu_RI.shp");
//         zzz.LayerColor(layerName, 255, 0, 0, 255);
        //         zzz.LayerLoad(layerName);

//     layerName = "ys_common";
//     zzz.LayerMake(layerName, "grid", "E:\\yeosoo\\grid\\ys_real_common.grid");
//     zzz.LayerRscPath(layerName, "rsc_common");
//     zzz.LayerLoad(layerName);
// 
//     layerName = "ys_public";
//     zzz.LayerMake(layerName, "grid", "E:\\yeosoo\\grid\\ys_real_public.grid");
//     zzz.LayerRscPath(layerName, "rsc_public");
//     zzz.LayerLoad(layerName);
// 
//     layerName = "ys_etc";
//     zzz.LayerMake(layerName, "grid", "E:\\yeosoo\\grid\\ys_real_etc.grid");
//     zzz.LayerRscPath(layerName, "rsc_etc");
//     zzz.LayerLoad(layerName);
// 
//     layerName = "ys_culture";
//     zzz.LayerMake(layerName, "grid", "E:\\yeosoo\\grid\\ys_real_culture.grid");
//     zzz.LayerRscPath(layerName, "rsc_culture");
//     zzz.LayerLoad(layerName);
// 
//     layerName = "ys_industry";
//     zzz.LayerMake(layerName, "grid", "E:\\yeosoo\\grid\\ys_real_industry.grid");
//     zzz.LayerRscPath(layerName, "rsc_industry");
//     zzz.LayerLoad(layerName);
// 
//     layerName = "ys_service";
//     zzz.LayerMake(layerName, "grid", "E:\\yeosoo\\grid\\ys_real_service.grid");
//     zzz.LayerRscPath(layerName, "rsc_service");
//     zzz.LayerLoad(layerName);
// 
//     layerName = "ys_medical";
//     zzz.LayerMake(layerName, "grid", "E:\\yeosoo\\grid\\ys_real_medical.grid");
//     zzz.LayerRscPath(layerName, "rsc_medical");
//     zzz.LayerLoad(layerName);
// 
//     layerName = "ys_general";
//     zzz.LayerMake(layerName, "grid", "E:\\yeosoo\\grid\\ys_real_general.grid");
//     zzz.LayerRscPath(layerName, "rsc_general");
//     zzz.LayerLoad(layerName);


        //zzz.LayerFit(layerName);

//     layerName = "ys_real";
//     zzz.LayerMake(layerName, "grid", "E:\\yeosoo\\grid\\ys_real.grid");
//     zzz.LayerRscPath(layerName, "rsc");
//     zzz.LayerLoad(layerName);

        LayerGrid("ys_real", "http://30.30.30.85/yeosoo/grid/ys_real.grid", 4000, "rsc_real");


        LayerGrid("expo", "E:\\yeosoo\\grid2\\grid\\EXPO.grid", 4000, "RSC");

        LayerGrid("JUKLIM", "E:\\yeosoo\\grid2\\grid\\JUKLIM.grid", 4000, "RSC");
        LayerGrid("JUSO_3D", "E:\\yeosoo\\grid2\\grid\\JUSO_3D.grid", 4000, "RSC");
        LayerGrid("UNGCHEON", "E:\\yeosoo\\grid2\\grid\\UNGCHEON.grid", 4000, "RSC");
        LayerGrid("YEOSU", "E:\\yeosoo\\grid2\\grid\\YEOSU.grid", 4000, "RSC");
        
        
        
        
        
        
        
        
        
        //LayerGrid("ys_real", "E:\\yeosoo\\grid\\ys_real.grid", 4000, "rsc_real");
    //LayerGrid("road_noti", "http://30.30.30.85/yeosoo/works/grid/ROAD_NOTI.grid", 4000, "rsc_road_noti");
        //LayerGrid("road_noti", "E:\\yeosoo\\grid\\ROAD_NOTI.grid", 4000, "rsc_road_noti");
    //LayerGrid("ys_trans_sig", "http://30.30.30.85:/yeosoo/works/grid/TRANS_SIGNAL.grid", 4000, "rsc_trans_signal");
    //LayerGrid("ys_trans_sig", "E:\\yeosoo\\works\\grid\\TRANS_SIGNAL.grid", 4000, "rsc_trans_signal");

        //LayerGrid("ys_expo", "E:\\yeosoo\\YEOSU\\Grid_model\\EXPO.grid", 4000, "rsc");
        //LayerGrid("ys_expo", "http://30.30.30.85/yeosoo/YEOSU/Grid_model/EXPO.grid", 4000, "rsc");
        

    
    }

    function LayerTexSimple(layerName, url, mode) {


        zzz.LayerMake(layerName, "texturesimple", url);
        zzz.LayerPolygonMode(layerName, mode);
        zzz.LayerColor(layerName, 255, 0, 0, 128);
        //zzz.LayerOverlay(layerName, true);
        zzz.LayerLoad(layerName);


    }

    function LayerWFSPointIcon(layerName,url) {
        //layerName = "wtl_valv_ps";
        //layerName = "LP_PA_CBND_text";
        //url = "http://175.196.64.236:8080/kMap/GetFeatureAttribute";
        //url = "http://175.196.63.119:8080/IntraMap/GetFeatureAttribute";
        //url = "http://61.41.17.238:8080/IntraMap/GetFeatureAttribute";
        zzz.LayerMake(layerName, "Grid", url);
        zzz.LayerMaxDistance(layerName, 4000);
        zzz.LayerGridLayerType(layerName, "PointIcon");
        zzz.LayerGridBlockSize(layerName, 500);

        zzz.LayerGridInfo(layerName, "IconSize", "16^16"); // icon size
        zzz.LayerGridInfo(layerName, "IconPath", "D:\\src\\1.os\\rsc\\water_4.jpg");   // 아이콘 경로
        zzz.LayerGridIDField(layerName, "OIL_NAME");
        zzz.LayerLoad(layerName);


    }


    function LayerWFSPointSphere(layerName,url, r, g, b) {

        //IMap3DActiveX.LayerMake(layerName, "Grid", "http://20.20.20.76:8888/IntraMap/GetFeatureAttribute");
        zzz.LayerMake(layerName, "Grid", url);
        zzz.LayerMaxDistance(layerName, 2000);
        zzz.LayerGridLayerType(layerName, "PointSphere");
        zzz.LayerGridBlockSize(layerName, 500);
        zzz.LayerColor(layerName, r, g, b, 128);
        zzz.LayerGridInfo(layerName, "PointSize", 10);
        zzz.LayerLoad(layerName);
    }

    
    
    function LayerWFSPointText(layerName,url,field,r,g,b,size) {
        //layerName = "wtl_valv_ps";
        //layerName = "LP_PA_CBND_text";
        //url = "http://175.196.64.236:8080/kMap/GetFeatureAttribute";
        //url = "http://175.196.63.119:8080/IntraMap/GetFeatureAttribute";
        //url = "http://61.41.17.238:8080/IntraMap/GetFeatureAttribute";
        zzz.LayerMake(layerName, "Grid", url);
        zzz.LayerMaxDistance(layerName, 4000);
        //zzz.LayerGridLayerType(layerName, "PointShareModel");
        zzz.LayerGridLayerType(layerName, "PointText");
        zzz.LayerGridBlockSize(layerName, 500);

        zzz.LayerGridFields(layerName, field);   // 텍스트 설청 필드

         zzz.LayerGridInfo(layerName, "IconSize", "16^16"); // icon size
         //zzz.LayerGridInfo(layerName, "IconPath", "D:\\src\\1.os\\rsc\\water_4.jpg");   // 아이콘 경로
         zzz.LayerGridInfo(layerName, "IconPath", "http://30.30.30.85:8080/water_4.jpg");   // 아이콘 경로
         

        zzz.LayerColor(layerName, r, g, b, 128); // 텍스트 컬러 설정
        zzz.LayerColor2(layerName, 0, 0, 0, 255); // 텍스트 컬러 설정
        
        zzz.LayerTextInfo(layerName, "","",false,size);  // 텍스트 폰트,사이즈,볼드체 설정. 현재 사이즈만 적용됨.
        zzz.LayerLoad(layerName);

    }


    function Layer_Model() {
    
        //             layerName = "icon";
        //         //url=count^type(reverved)^아이콘가로^아이콘세로^ID^네임^x^y^z^ID^네임^x^y^z^.........
        //             url = "1^Click^40^30^id1^name1^260874^140080^12";
        // 		ax3d.LayerMake(layerName, "scene", url);
        //  ax3d.LayerSceneLayerType(layerName, "LISTICONNUMBER", "");
        //         ax3d.LayerMaxDistance(layerName, 500);
        //         ax3d.LayerLoad(layerName);
        //         ax3d.LayerFit(layerName);

        layerName = "model";
        //type^iconpath^width^height^count^id^name^x^y^z.....

        //url = "Click^iconpath^40^40^count^id^name^x^y^z....."
        //url = "2^id1^name1^state1^30^60^289^1.6^400000^180000^0^id2^name2^state2^30^60^289^1.6^400000^180000^0"

        //url = "1^aaa^-528^1062^0^C://puos_work//data//koika//FIRE0011.3DS";
        //url = "1;aaa;-528;1062;0;C://puos_work//data//koika//FIRE0011.3DS";
        url = "http://fkfjf.jsp";
        /*
        *	
        count ^ id ^ name ^ x ^ y ^ z 
        */


        zzz.LayerMake(layerName, "grid", url);
        zzz.LayerGridLayerType(layerName, "PointShareModel");
        //ax3d.LayerMaxDistance(layerName, 100000);
        //zzz.LayerRscPath(layerName, "c:\\koica");
        zzz.LayerRscPath(layerName, "http://30.30.30.85");
        zzz.LayerGridBlockSize(layerName, 1000);
        zzz.LayerMaxDistance(layerName, 10000);

        zzz.LayerDepthInfo(layerName, "on");

        zzz.LayerLoad(layerName);
        //ax3d.LayerFit(layerName);

    }


    function LayerTex(layerName, url, mode,r,g,b) {


        //zzz.LayerMake(layerName, "texturesimple", url);
        zzz.LayerMake(layerName, "texture", url);
        zzz.LayerPolygonMode(layerName, mode);
        zzz.LayerColor(layerName, r, g, b, 255);
        zzz.LayerColor2(layerName, 0, 0, 0, 255);
        //zzz.LayerOverlay(layerName, true);
        //zzz.LayerFilter(layerName, "REGEN");
        zzz.LayerLineInfo(layerName, "Bydistance", 10);
        //zzz.LayerLineInfo(layerName, "", 3);
        //zzz.LayerLineInfo(layerName, "Bydistance", 3);
        zzz.LayerLoad(layerName);

    }

    function LayerTexFilter(layerName, url, mode,r, g, b,filter) {


        //zzz.LayerMake(layerName, "textureedit", url);
        zzz.LayerMake(layerName, "texture", url);
        
        // optional
        zzz.LayerPolygonMode(layerName, mode);
        zzz.LayerColor(layerName, r, g, b, 128);
        zzz.LayerOverlay(layerName, true);
        zzz.LayerFilter(layerName, filter);
        //zzz.LayerFitOnLoad(layerName, true);

        zzz.LayerLoad(layerName);
        
        

    }
    
    function LayerGrid(layerName,url,maxdist,rscPath) {


        zzz.LayerMake(layerName, "grid", url);
        
        // optional        
        zzz.LayerRscPath(layerName, rscPath);
        zzz.LayerMaxDistance(layerName, maxdist);
        //zzz.LayerGridInfo(layerName, "GridZ","on");
        zzz.LayerColor2(layerName, 255, 0, 0, 255);
        
        
        zzz.LayerLoad(layerName);
    
    }

    function LoadGrid_ty() {
    
     
//         layerName="model";
//         url = "http://175.196.63.55:8888/BuildingGrid/MODELING_ETC_3D.grid";
//         LayerGrid(layerName, url, 10000, "rsc");

        layerName = "model";
        url = "http://20.20.20.55:8080/GridData/MODELING_ETC_3D.GRID";
        LayerGrid(layerName, url, 10000, "rsc");
     
    }

    function LoadGrid_Seoul() {
        var layerName;
        var url;
//         layerName = "가로수"; rscPath = "rsc_roadtree";
//         url = "http://210.90.46.79/3ddb/DX/grid_copy/SEOUL_SI_ROADTREE_090216.grid"; LayerGrid(layerName, url, 4000, rscPath);
// 
// 
        layerName = "yeouido"; rscPath = "rsc_yeouido";
        url = "http://210.90.46.79/3ddb/DX/grid_4gu/yeouido.grid"; LayerGrid(layerName, url, 4000, rscPath);
// 
        layerName = "gangnam"; rscPath = "rsc_gangnam";
        url = "http://210.90.46.79/3ddb/DX/grid_4gu/gangnam.grid"; LayerGrid(layerName, url, 4000, rscPath);
// 
        layerName = "seocho"; rscPath = "rsc_seocho";
        url = "http://210.90.46.79/3ddb/DX/grid_4gu/seocho.grid";LayerGrid(layerName, url, 4000, rscPath);
// // 
// // 
//         layerName = "gen"; rscPath = "rsc";
//         url = "http://210.90.46.79/3ddb/DX/grid_4gu/SEOUL_SI_GENERAL_BUILDING_3D_4GU2.grid";LayerGrid(layerName, url, 4000, rscPath);
// 
//         layerName = "model"; rscPath = "rsc_iom";
//         url = "http://210.90.46.79/3ddb/DX/grid_4gu/SEOUL_SI_MODEL_BUILDING3D_4GU.grid"; LayerGrid(layerName, url, 4000, rscPath);


//         layerName = "gentext"; rscPath = "";
//         url = "F:\\work\\proj\\seoul2010\\works\\grid\\SEOUL_GENERAL_NAME.grid"; LayerGrid(layerName, url, 4000, rscPath);


        //url = "F:\\work\\seoul\\seoul_new_data\\(라) 가시화데이터\\seoul_real3d_apt_2.grid"; LayerGrid("real3d_apt2", url, 4000, "");
        //url = "E:\\seoul\\works\\pnu110104\\grid\\SEOUL_SI_GENERAL_BUILDING_3D_4GU_2010_3D.grid"; LayerGrid("gen", url, 4000, "");
        //url = "E:\\seoul\\works\\pnu110104\\grid\\SEOUL_SI_MODEL_BUILDING3D.grid"; LayerGrid("model", url, 4000, "");

        //         url = "F:\\work\\activex_ex\\grid header\\BUILDING.grid"; LayerGrid("building", url, 4000, "");
        //         url = "F:\\work\\activex_ex\\grid header\\seocho.grid"; LayerGrid("seocho", url, 4000, "");
        //         url = "F:\\work\\activex_ex\\grid header\\SEOUL_SI_GENERAL_BUILDING_3D_4GU_2010_3D.grid"; LayerGrid("build3d", url, 4000, "");
        //url = "E:\\seoul\\works\\pnu110105\\grid\\SEOUL_SI_MODEL_BUILDING3D.grid"; LayerGrid("SEOUL_SI_MODEL_BUILDING3D", url, 4000, "");

        //url = "F:\\work\\seoul\\seoul_new_data\\(라) 가시화데이터\\seoul_real3d.grid"; LayerGrid("real3d", url, 4000, "");
        


//         layerName = "roadmain"; rscPath = "";
//         url = "http://210.90.46.79/3ddb/DX/grid_copy2/SEOUL_ROAD_MAIN.grid";
//         LayerGrid(layerName, url, 4000, rscPath);


        //layerName = "genName"; rscPath = "";        url = "E:\\seoul\\grid\\SEOUL_GENERAL_NAME.grid";        LayerGrid(layerName, url, 4000, rscPath);
        //zzz.LayerColor2(layerName, 255, 0, 0, 255);
        

        
//         layerName = "modelText";rscPath = "";
//         url = "http://210.90.46.79/3ddb/DX/grid_copy2/SEOUL_MODEL_NAME_0422.grid";
//         LayerGrid(layerName, url, 4000, rscPath);


//         layerName = "한강교량"; rscPath = "rsc_bridge";
//         url = "http://210.90.46.79/3ddb/DX/grid/SEOUL_SI_HANBRIDGE.grid";
//         LayerGrid(layerName, url, 4000, rscPath);



        //layerName = "modelpnu"; rscPath = "";
        //url = "F:\\work\\seoul2010\\works3\\grid\\SEOUL_SI_MODEL_BUILDING3D_APT.grid"; LayerGrid("modelaptpnu", url, 4000, "");
        //url = "F:\\work\\seoul2010\\works3\\grid\\SEOUL_SI_MODEL_BUILDING3D_APT.grid"; LayerGrid("modelaptpnu", url, 4000, "");
        //url = "F:\\work\\seoul\\seoul_new_data\\(라) 가시화데이터\\seoul_real3d_apt.grid"; LayerGrid("real3d_apt", url, 4000, "");
        //url = "F:\\work\\seoul\\seoul_new_data\\(라) 가시화데이터\\seoul_real3d.grid"; LayerGrid("real3d", url, 4000, "");

        //url = "F:\\work\\seoul2010\\다리모델 그리드\\grid\\BIKEEX_3D.grid"; LayerGrid("ffefef", url, 4000, "");
        //url = "F:\\work\\seoul2010\\works4\\grid\\SEOUL_SI_GENERAL_BUILDING_3D_4GU_2010_3D.grid"; LayerGrid("ffefef", url, 4000, "");


        //url = "http://210.90.46.79/3ddb/DX/servicedata_2010/02_3DModel/CITY_3D.grid"; LayerGrid("city", url, 4000, "rsc");
        


//         layerName = "real3d_apt"; rscPath = "";
//         url = "F:\\work\\seoul\\seoul_new_data\\(라) 가시화데이터\\real3d_apt.grid";
//         LayerGrid(layerName, url, 4000, rscPath);

//         layerName = "real3d"; rscPath = "";
//         url = "F:\\work\\seoul\\seoul_new_data\\(라) 가시화데이터\\real3d.grid";
//         LayerGrid(layerName, url, 4000, rscPath);


        
        

//         layerName = "genpnu"; rscPath = "";
//         url = "F:\\work\\seoul2010\\works2\\grid\\SEOUL_SI_GENERAL_BUILDING_3D_4GU_2010_3D.grid";
//         LayerGrid(layerName, url, 4000, rscPath);


//F:\\work\\seoul2010\\works\\grid\\SEOUL_SI_APART_BUILDING_3D_4GU_2010.grid

//         layerName = "gen_apt"; rscPath = "rsc";
//         url = "http://30.30.30.85/seoul/grid/SEOUL_SI_APART_BUILDING_3D_4GU_2010.grid";
//         //url = "E:\\seoul\\grid\\SEOUL_SI_APART_BUILDING_3D_4GU_2010.grid";
//         LayerGrid(layerName, url, 4000, rscPath);


//         layerName = "gena"; rscPath = "rsc";
//         url = "F:\\work\\seoul2010\\works\\grid\\SEOUL_SI_GENERAL_BUILDING_3D_4GU_2010.grid";
//         LayerGrid(layerName, url, 4000, rscPath);





//         layerName = "seoul_real_test"; rscPath = "rsc";
//         url = "E:\\서울Test\\03_Real3DData\\grid\\seoul_test.grid";
//         LayerGrid(layerName, url, 4000, rscPath);
//         //zzz.LayerFit(layerName);



        //         layerName = "yeouido300"; rscPath = "rsc_yeouido";
        //         //url = "http://30.30.30.85/seoul/grid_seocho/yeouido300.grid";
        //         url = "E:\\seoul\\grid_seocho\\yeouido300.grid";
        //         LayerGrid(layerName, url, 4000, rscPath);

        //         layerName = "yeouido500"; rscPath = "rsc_yeouido";
        //         url = "E:\\seoul\\grid_seocho\\yeouido500.grid";
        //         LayerGrid(layerName, url, 4000, rscPath);

        //         layerName = "yeouido500"; rscPath = "rsc_yeouido";
        //         url = "E:\\seoul\\grid_seocho\\yeouido500.grid";
        //         LayerGrid(layerName, url, 30000, rscPath);
        //         zzz.LayerFit(layerName);


// layerName = "yeouido"; rscPath = "rsc_gangnam";
// url = "E:\\seoul\\grid_seocho\\yeouido.grid";
// LayerGrid(layerName, url, 4000, rscPath);
// zzz.LayerFit(layerName);
// 
// layerName = "gangnam"; rscPath = "rsc_gangnam";
// url = "E:\\seoul\\grid_seocho\\gangnam.grid";
// LayerGrid(layerName, url, 4000, rscPath);
// zzz.LayerFit(layerName);
// 
// layerName = "seocho"; rscPath = "rsc_seocho";
// url = "E:\\seoul\\grid_seocho\\seocho.grid";
// LayerGrid(layerName, url, 4000, rscPath);
// zzz.LayerFit(layerName);


        //         layerName = "gangnam"; rscPath = "rsc_gangnam";
        //         url = "E:\\seoul\\grid_seocho\\SEOUL_SI_GENERAL_BUILDING_3D_4GU_2010 - 복사본.grid";
        //         
        //         //url="E:\\seoul\\grid_seocho\\1.grid"
        //         LayerGrid(layerName, url, 30000, rscPath);
        //         zzz.LayerFit(layerName);

//         layerName = "genapt"; rscPath = "rsc";
//         url = "F:\\work\\seoul2010\\works2\\grid\\SEOUL_SI_GENERAL_BUILDING_3D_4GU_2010_APT_3D.grid";
//         LayerGrid(layerName, url, 4000, rscPath);

         
    }



    function Test_Layer() 
    {

        var fontBase = 12;

        var fontGu = 16;
        var fontDong = 16;

        var layerName;
        var url;
               
        layerName = "modeliom";
        //url = "http://123.140.221.251:9000/DX/grid/SEOUL_SI_MODEL_BUILDING_091009.grid";
        url = "http://30.30.30.85/seoul/work_old/grid/SEOUL_SI_MODEL_BUILDING_091009.grid";

        zzz.LayerMake(layerName, 7, url);
        zzz.LayerRscPath(layerName, "rsc_iom");
        zzz.LayerMaxDistance(layerName, 4000);
        zzz.LayerLoad(layerName);

        // 
        // 
        // 	            layerName = "general";
        // 	            url = "http://123.140.221.251:9000/DX/grid/SEOUL_SI_3DGENERAL_BUILDING_091103.grid";
        // 	            
        // 	            zzz.LayerMake(layerName, 7, url);
        // 	            zzz.LayerRscPath(layerName, "rsc");
        // 	            zzz.LayerMaxDistance(layerName, 2000);
        // 	            zzz.LayerLoad(layerName);
        // 
        //

        // 모델 여의도
        layerName = "yeo";
        url = "http://123.140.221.251:9000/DX/grid/3D_MODEL_3D_POLYGON.grid";
        zzz.LayerMake(layerName, 7, url);
        zzz.LayerRscPath(layerName, "rsc_yeo");
        zzz.LayerMaxDistance(layerName, 4000);
        zzz.LayerLoad(layerName);


        layerName = "3d_name";
        url = "http://30.30.30.85/seoul/grid/SEOUL_MODEL_NAME_0422.grid";

        zzz.LayerMake(layerName, 7, url);
        zzz.LayerMaxDistance(layerName, 2000);
        zzz.LayerTextInfo(layerName, "", "", false, fontBase);
        zzz.LayerColor(layerName, 255, 255, 255, 255);
        
        zzz.LayerHeightInfo(layerName, "", 3, 0);

        
        zzz.LayerLoad(layerName);


        // 일반건물
        layerName = "general";
        //url = "http://123.140.221.251:9000/DX/grid/SEOUL_SI_3DGENERAL_BUILDING_091103_roof.grid";
        url = "http://30.30.30.85/seoul/grid/test/SEOUL_SI_3DGENERAL_BUILDING_091103_roof.grid";

        zzz.LayerMake(layerName, 7, url);
        zzz.LayerRscPath(layerName, "rsc");
        zzz.LayerMaxDistance(layerName, 2000);
        zzz.LayerLoad(layerName);



        layerName = "general_name";
        url = "http://30.30.30.85/seoul/grid/SEOUL_GENERAL_NAME.grid";

        zzz.LayerMake(layerName, 7, url);
        zzz.LayerMaxDistance(layerName, 2000);
        zzz.LayerTextInfo(layerName, "", "", false, fontBase);
        zzz.LayerHeightInfo(layerName, "", 3, 0);
        zzz.LayerLoad(layerName);


        // 행정경계 구 이름
        layerName = "bound_gu_name";
        url = "http://30.30.30.85/seoul/grid/SEOUL_BOUND_GU_NAME.grid";
        zzz.LayerMake(layerName, 7, url);
        zzz.LayerMaxDistance(layerName, 30000);
        zzz.LayerTextInfo(layerName, "", "", false, fontGu);
        zzz.LayerHeightInfo(layerName, "", 50, 0);

        zzz.LayerLoad(layerName);


        // 행정경계 동 이름
        layerName = "bound_dong_name";
        url = "http://30.30.30.85/seoul/grid/SEOUL_BOUND_DONG_NAME.grid";
        zzz.LayerMake(layerName, 7, url);
        zzz.LayerMaxDistance(layerName, 2000);

        zzz.LayerTextInfo(layerName, "", "", false, fontDong);
        zzz.LayerHeightInfo(layerName, "", 10, 0);
        zzz.LayerLoad(layerName); 

    
    }


    function Test_MouseMode() 
    {

        //zzz.MouseModeOption("PdpControl", "Mode", "vertical");
        //zzz.MouseModeOption("PdpControl", "Mode", "move");
        //zzz.MouseMode("PdpControl");
        
         //zzz.MouseMode("BusNaviLinkClick");
         //zzz.DlgVisible("BusNavi", true);
          zzz.MouseMode("PickPoint");
          zzz.MouseModeOption("PickPoint","PointMode","Normal");
          //zzz.MouseModeOption("PickPoint", "PointVisible", "off");

//

        //zzz.MouseModeOption("DRAWPOINTS", "RemoveMode", "Delay");
        //zzz.MouseModeOption("DRAWPOINTS", "RemoveMode", "OnTime");
 
        //zzz.MouseModeOption("DrawPoints", "NumberVisible", "on");
        //zzz.MouseModeOption("DRAWPOINTS", "Mode", "Line");
        //zzz.MouseModeOption("DRAWPOINTS", "Mode", "Polygon");
        //zzz.MouseMode("DRAWPOINTS");


         //zzz.MouseMode("TerrainBrush");
//         zzz.MouseModeOption("TerrainBrush", "AreaMode", "Rect");
         //zzz.MouseModeOption("TerrainBrush", "Amount", "50");
        
         //zzz.MouseModeOption("TerrainBrush", "Radius", 1000);



       //zzz.MouseMode("Edit2DMove");

        //zzz.MouseMode("Edit3D");
//          zzz.MouseModeOption("Drag", "LineVisible", "on");
//          zzz.MouseModeOption("Drag", "Color", "255^0^0^255");
//          zzz.MouseMode("Drag");

        //zzz.MouseMode("Edit2DGeometry");

         //zzz.MouseMode("DrawRect");
        //zzz.MouseMode("DrawCircle");
//          zzz.MouseMode("Draw2Line");
//          zzz.MouseModeOption("Draw2Line","LineWidth","10");
         
    
    }
    
    
    function Test2() {

  //      LayerToggle("biotop");
        
        //zzz.NaviPause(true);
//        LayerName = "TestShp";
//        url = "G:\\KSIC Data\\SHP\\자전거도로\\419ro1_L.shp";
//        Filter = "ROAD_NAME=4.19길";
//        zzz.LayerMake(LayerName, 11, url);
//        zzz.LayerColor(LayerName, 0, 255, 0, 0);
//        zzz.LayerFilter(LayerName, Filter);
//        zzz.LayerLoad(LayerName);

        //zzz.BusNaviFilter("ROAD_NAME=대방로01"); 
        
        //Test_BusNaviSelect();
        //zzz.BusNaviLayerVisible("FULLPATH", true);    
        //zzz.BusNaviClear();
        zzz.NaviStop();
        
     
        //zzz.CamZoomUI(1, "1000", false);

//         zzz.LayerRemove("subway_line1");
//         zzz.LayerTexureUpdate();
        
        
        //zzz.LayerVisible("general", false);
        //zzz.LayerRemove("test");
        //zzz.LayerIMGVisible("지형", false);

        //zzz.LayerVisible("bridge", false);



        //zzz.AnalysisSunlightInfo("pause", "off");
       // zzz.TerrainEditClear();


        //zzz.LayerOverlay("expo", false);
        
//         // 마곡단지 로드.
//         layerName = "magoc";
//         url = "http://210.90.46.78:80/SearchMap_3D/model_Magoc.jsp";
//         zzz.LayerMake(layerName, 6, url);
//         zzz.LayerMaxDistance(layerName, 2000);
//         zzz.LayerSceneLayerType(layerName, "ListModel");
//         zzz.LayerOverlay(layerName, true);
//         zzz.LayerLoad(layerName);
//         zzz.LayerFit(layerName);
        

//         layerName = "newgovenment";
//         url = "http://210.90.46.78/SearchMap_3D/model_NewGoverment.jsp";
//         zzz.LayerMake(layerName, 6, url);
//         zzz.LayerMaxDistance(layerName, 2000);
//         zzz.LayerSceneLayerType(layerName, "ListModelTex");
//         zzz.LayerLoad(layerName);

//             layerName = "theme_icon";
//             url = "2^type^32^32^id_fff^name_dd^0^0^0^id_ccc^name_ff^0^0^0^";
//             zzz.LayerMake(layerName, 6, url);
//             zzz.LayerMaxDistance(layerName, 10000);
//             zzz.LayerSceneLayerType(layerName, "ListIconNumber");
        //             zzz.LayerLoad(layerName);



        //zzz.DrawBillBoard("test", "", 199261, 448192, 100, 100, 199, true, true, false);




        //zzz.DrawSphere("NORMALTERRAINHEIGHT", "ttt^199261^448192^100^500^255^0^0^128^");


        //zzz.MouseMode("Dist");


        //Test_Movie();


        //zzz.BusNaviSelectClear();
        //zzz.MouseMode("PickObj");


//         var re = zzz.LayerGetBound("jibunn");
//
        //         zzz.DrawBoundBox("", "", re);


        //zzz.LayerRemove("seocho_all");

        //zzz.ObjectEdit("build", "id1", "restoreMaterial", "");

        //Test_BusNaviInfo();
        //zzz.TerrainEditClear();
        //zzz.DlgVisible("CAMERAUI", true);

       // zzz.NaviStop();

        
    }

    function Test_ViewShp() 
    {
//         var layerName = "shp1";
// 
//         var url;
// 
// 
//         //url = "E:\\서울경계\\seoul_bound_dong_2d.shp";
//         //url = "E:\\내 문서\\Talknow-Downloads\\서울경계_Line\\서울_구경계.xsf";
//         url = "E:\\내 문서\\Talknow-Downloads\\서울경계_Line\\서울_법정동.xsf";
//         
//         
//         zzz.LayerMake(layerName, 11, url);
//         zzz.LayerColor(layerName,255,0,0,255);
//         //zzz.LayerPolygonMode(layerName, "POLYGON");
//         zzz.LayerLoad(layerName);
// 
//         zzz.LayerTexureUpdate();


        url = "D:\\temp\\ksic\\1100071859.pth";

        var layerName = "shp1";
	    
	    
	    zzz.LayerMake(layerName, 11, url);
	    zzz.LayerColor(layerName, 0, 0, 128, 255);
	    

	    zzz.LayerLineInfo(layerName, "ByDistance", 20);

	    zzz.LayerLoad(layerName);
	    zzz.LayerTexureUpdate();






	}

	var re;

	var g_cam_x, g_cam_y, g_cam_z;
	function Test_Camera() {

	    //alert(zzz.GetCamInfo("Distance"));
	    //alert(zzz.GetCamInfo("Pitch"));

	    //var re = zzz.GetCameraPosition();
	    //var re2 = re.split(',');


	    //zzz.CamSet("MinDistance", 50);
	    zzz.CamZoom("ratio", "0.5");

	    //zzz.CamPos(g_cam_x, g_cam_y,1000);
	    //zzz.CamSet("RotateAbsoluteXAxis", "45");
	    //zzz.CamSet("RotateAbsoluteZAxis", "45");

	    //zzz.CamPos(re2[0]+100, re2[1]+100, re2[2]);
	    

	    
	    
	}
    
    function Test_Camera1() {
        //zzz.CamZoom("Distance", -10000);
        //zzz.CamZoom("", -0.5);

        re = zzz.GetCamMatrix();


        alert(re);
        
        
        
    }

    function Test_Camera2() {
        //zzz.CamZoom("Distance", 1);
        //zzz.CamZoom("", 0.5);

        zzz.SetCamMatrix(re);
    }

    function LayerMV_Line(layerName, url, r, g, b,lineType,w) {

        zzz.LayerMake(layerName, "texture", url);
        zzz.LayerTextureLayerType(layerName, "ManuelVector");
        zzz.LayerLineInfo(layerName, lineType, w);
        zzz.LayerColor(layerName, r, g, b, 50);
        //zzz.LayerVisibleLevel(layerName, 0, 30);
        zzz.LayerLoad(layerName);
        zzz.LayerTextureUpdate();
        

    }


    function LayerMV_Outline(layerName, url, r, g, b) {

        //return;
        zzz.LayerMake(layerName, "texture", url);
        zzz.LayerTextureLayerType(layerName, "ManuelVector");
        zzz.LayerPolygonMode(layerName, "Outline");
        zzz.LayerColor2(layerName, r, g, b, 255);
        zzz.LayerVisibleLevel(layerName, 0, 30);
        zzz.LayerLoad(layerName);
        zzz.LayerTextureUpdate();
        

    }
    function LayerMV_Both(layerName, url, r, g, b,r2,g2,b2) {

        //return;
        zzz.LayerMake(layerName, "texture", url);
        zzz.LayerTextureLayerType(layerName, "ManuelVector");
        zzz.LayerPolygonMode(layerName, "Both");
        zzz.LayerColor(layerName, r, g, b, 255);
        zzz.LayerColor2(layerName, r2, g2, b2, 255);
//         zzz.LayerTextureInfo(layerName, "Texture", "F:\\doc\\Talknow-Downloads\\범례_png\\상하수도\\SWL_SPOT_PS.png");
        //         zzz.LayerTextureInfo(layerName, "PatternSize", "16");
        //zzz.LayerUPISColorFIeld(layerName, "UQA130");

        //zzz.LayerVisibleLevel(layerName, 0, 30);
        zzz.LayerLoad(layerName);
        zzz.LayerVisible(layerName, true);
        zzz.LayerTextureUpdate();
        

    }

    
    function LayerMV(layerName,url,r,g,b,zindex) {

        //return;
        zzz.LayerMake(layerName, "texture", url);
        //zzz.LayerTextureLayerType(layerName, "PageVectorStringPolygon");
        zzz.LayerTextureLayerType(layerName, "PageVectorStringLine");
        //zzz.LayerTextureLayerType(layerName, "ManuelVector");
        zzz.LayerPolygonMode(layerName, "Polygon");
        zzz.LayerZIndex(layerName, zindex);
        //zzz.LayerVisibleLevel(layerName, 0, 30);


        //zzz.LayerUPISColorFIeld(layerName, "UQA111");
        zzz.LayerColor(layerName, r, g, b, 255);
        zzz.LayerLoad(layerName);
        zzz.LayerTextureUpdate();
        

    }
    

    function Test_Hangang() 
    {
        // 한강..
        layerName = "han1";
        url = "E:\\shp\\etc\\h1.xsf";
        zzz.LayerMake(layerName, 6, url);
        zzz.LayerMaxDistance(layerName, 2000);
        zzz.LayerSceneLayerType(layerName, "SingleWater","");
        zzz.LayerHeightInfo(layerName, "", 0, 10);
        zzz.LayerLoad(layerName);

        layerName = "han2";
        url = "E:\\shp\\etc\\h2.xsf";
        zzz.LayerMake(layerName, 6, url);
        zzz.LayerMaxDistance(layerName, 2000);
        zzz.LayerSceneLayerType(layerName, "SingleWater","");
        zzz.LayerHeightInfo(layerName, "", 0, 10);
        zzz.LayerLoad(layerName);

        layerName = "han3";
        url = "E:\\shp\\etc\\h3.xsf";
        zzz.LayerMake(layerName, 6, url);
        zzz.LayerMaxDistance(layerName, 2000);
        zzz.LayerSceneLayerType(layerName, "SingleWater","");
        zzz.LayerHeightInfo(layerName, "", 0, 10);
        zzz.LayerLoad(layerName);

    }


    function Yeosoo_Tex() {
        //url = "http://175.196.63.119:8080/MapService";
        //url = "http://61.41.17.238:8080/MapService";
        //url = "http://30.30.30.77:8080/Servlet/servlet/intramapswg.MapService";
        //url = "http://175.196.64.77:8080/Servlet/servlet/intramapswg.MapService";
        //url = "http://175.196.64.19:8080/servlet/intramapswg.MapService";

        //url = "http://175.196.64.236:8080/kMap/MapService";
        //url = "http://175.196.63.119:8080/IntraMap/MapService";
        url = "http://175.196.63.119:8080/DrawVectorMap";
        

        

//        LayerMV_Line("RDL_CTLR_LS_POLYLINE", url,255,0,0,"ByDistance",1,0,30);
//         LayerMV_Line("RDL_RBLN_LS_polyline", url,255,255,0,"ByDistance",1,0,30);
//         LayerMV_Line("RDL_PROT_LS_polyline", url, 0, 255, 0, "ByDistance", 1,0,30);
//         LayerMV_Line("RDL_SMRW_LS_polyline", url, 0, 0, 255, "ByDistance", 1,0,30);
// 
// 
//         LayerMV("RDL_BRDG_AS_region", url,255,0,0,0,30);
//         LayerMV("RDL_BYCP_AS_REGION", url,255,255,0,0,30);
//         LayerMV("RDL_CMDT_AS_REGION", url,255,0,255,0,30);
//         LayerMV("RDL_ETCT_AS_REGION", url,0,255,0,0,30);
//         LayerMV("RDL_EXCV_AS_REGION", url,0,0,255,0,30);
//  
//         LayerMV_Outline("RDL_MDST_AS_REGION", url,255,0,0,0,30);
//         LayerMV_Outline("RDL_NSPV_AS_REGION", url,255,255,0,0,30);
//         LayerMV_Outline("RDL_OCUP_AS_REGION", url,255,0,255,0,30);
//         LayerMV_Outline("RDL_OVPS_AS_REGION", url,0,255,255,0,30);
//         LayerMV_Outline("RDL_PARK_AS_REGION", url,0,255,0,0,30);
//  
//          LayerMV_Both("RDL_PAVE_AS_REGION", url,255,0,0, 0,0,0,0,30);
//         LayerMV_Both("RDL_PDCR_AS_REGION", url,255,255,0,   0,0,0,0,30);
//         LayerMV_Both("RDL_RDAR_AS_REGION", url,0,255,255,   0,0,0,0,30);
//         LayerMV_Both("RDL_SBWY_AS_REGION", url,0,0,255, 0,0,0,0,30);
//         LayerMV_Both("RDL_SDHP_AS_REGION", url,255,0,255,   0,0,0,0,30);
//  
//         LayerMV("RDL_SQAR_AS_REGION", url,128,0,0,0,30);
//         LayerMV("RDL_TRNL_AS_REGION", url, 128, 128, 0,0,30);

//

         LayerMV_Outline("LP_PA_CBND", url, 255, 0, 255, 0, 0, 0);
         LayerMV_Outline("Yeosu_SGG", url, 255, 0, 0, 0, 0, 0);
         LayerMV_Outline("Yeosu_YMD", url, 255, 255, 0, 0, 0, 0);
         LayerMV_Outline("Yeosu_RI", url, 255, 0, 255, 0, 0, 0);

         LayerMV_Line("RDL_CTLR_LS_POLYLINE", url, 255, 0, 0, "ByDistance", 1, 0, 30);
         LayerMV_Line("RDL_RBLN_LS_polyline", url, 255, 255, 0, "ByDistance", 1, 0, 30);
         LayerMV_Line("RDL_PROT_LS_polyline", url, 0, 255, 0, "ByDistance", 1, 0, 30);
         LayerMV_Line("RDL_SMRW_LS_polyline", url, 0, 0, 255, "ByDistance", 1, 0, 30);


         LayerMV("RDL_BRDG_AS_region", url, 255, 0, 0, 0, 30);
         LayerMV("RDL_BYCP_AS_REGION", url, 255, 255, 0, 0, 30);
         LayerMV("RDL_CMDT_AS_REGION", url, 255, 0, 255, 0, 30);
         LayerMV("RDL_ETCT_AS_REGION", url, 0, 255, 0, 0, 30);
         LayerMV("RDL_EXCV_AS_REGION", url, 0, 0, 255, 0, 30);

         LayerMV_Outline("RDL_MDST_AS_REGION", url, 255, 0, 0, 0, 30);
         LayerMV_Outline("RDL_NSPV_AS_REGION", url, 255, 255, 0, 0, 30);
         LayerMV_Outline("RDL_OCUP_AS_REGION", url, 255, 0, 255, 0, 30);
         LayerMV_Outline("RDL_OVPS_AS_REGION", url, 0, 255, 255, 0, 30);
         LayerMV_Outline("RDL_PARK_AS_REGION", url, 0, 255, 0, 0, 30);

         LayerMV_Both("RDL_PAVE_AS_REGION", url, 255, 0, 0, 0, 0, 0, 0, 30);
         LayerMV_Both("RDL_PDCR_AS_REGION", url, 255, 255, 0, 0, 0, 0, 0, 30);
         LayerMV_Both("RDL_RDAR_AS_REGION", url, 0, 255, 255, 0, 0, 0, 0, 30);
         LayerMV_Both("RDL_SBWY_AS_REGION", url, 0, 0, 255, 0, 0, 0, 0, 30);
         LayerMV_Both("RDL_SDHP_AS_REGION", url, 255, 0, 255, 0, 0, 0, 0, 30);

         LayerMV("RDL_SQAR_AS_REGION", url, 128, 0, 0, 0, 30);
         LayerMV("RDL_TRNL_AS_REGION", url, 128, 128, 0, 0, 30);



       LayerMV_Line("WTL_PIPE_LM_polyline", url, 255, 0, 0, "ByDistance", 1);
       LayerMV("WTL_PURI_AS_region", url, 255, 0, 0);
       LayerMV_Line("WTL_SPLY_LS_polyline", url, 255, 0, 0, "ByDistance", 1);
// 
        LayerMV_Line("SWL_CONN_LS_polyline", url, 255, 255, 0, "ByDistance", 1);
        LayerMV_Line("SWL_PIPE_LM_polyline", url, 0, 255, 0, "ByDistance", 1);
        LayerMV_Line("SWL_SIDE_LS_polyline", url, 0, 0, 255, "ByDistance", 1);
        LayerMV("SWL_AODR_AS_region", url, 255, 255, 0);
        LayerMV("SWL_DODR_AS_region", url, 255, 0, 255);
        LayerMV("SWL_PIPE_AS_region", url, 0, 255, 0);
// // // 
// // // 
// // // 
//         LayerMV_Both("LT_C_UQ129", url, 255, 0, 0, 0, 0, 0);
//         LayerMV_Both("LT_C_UQ121", url, 255, 0, 0, 0, 0, 0);
//         LayerMV_Both("LT_C_UQ123", url, 255, 0, 0, 0, 0, 0);
//         LayerMV_Both("LT_C_UQ162", url, 255, 0, 0, 0, 0, 0);
//         LayerMV_Both("LT_C_UQ164", url, 255, 0, 0, 0, 0, 0);
// 
//         LayerMV_Both("LT_C_UQ112", url, 255, 0, 0, 0, 0, 0);
//         LayerMV_Both("LT_C_UQ161", url, 255, 0, 0, 0, 0, 0);
//         LayerMV_Both("LT_C_UQ141", url, 255, 0, 0, 0, 0, 0);
//         LayerMV_Both("LT_C_UQ113", url, 255, 0, 0, 0, 0, 0);
//         LayerMV_Both("LT_C_UQ111", url, 255, 0, 0, 0, 0, 0);
// 
// //         LayerMV_Both("LT_C_UQ101", url, 255, 0, 0, 0, 0, 0);
//         LayerMV_Both("LT_C_UQ122", url, 255, 0, 0, 0, 0, 0);
//         LayerMV_Both("LT_C_UQ165", url, 255, 0, 0, 0, 0, 0);
//         LayerMV_Both("LT_C_UQ124", url, 255, 0, 0, 0, 0, 0);
//         LayerMV_Both("LT_C_UQ166", url, 255, 0, 0, 0, 0, 0);
// 
//         LayerMV_Both("LT_C_UQ126", url, 255, 0, 0, 0, 0, 0);
//         LayerMV_Both("LT_C_UQ127", url, 255, 0, 0, 0, 0, 0);
//         LayerMV_Both("LT_C_UQ163", url, 255, 0, 0, 0, 0, 0);
//         LayerMV_Both("LT_C_UQ114", url, 255, 0, 0, 0, 0, 0);
//         LayerMV_Both("LT_C_UQ128", url, 255, 0, 0, 0, 0, 0);
// 
//         LayerMV_Both("LT_C_UQ167", url, 255, 0, 0, 0, 0, 0);
//         LayerMV_Both("LT_C_UE101", url, 255, 0, 0, 0, 0, 0);
//         LayerMV_Both("LT_C_UO301", url, 255, 0, 0, 0, 0, 0);
//          LayerMV_Both("LT_C_UH101", url, 255, 0, 0, 0, 0, 0);
// //       LayerMV_Both("LT_C_UB920", url, 255, 0, 0, 0, 0, 0);
// // 
//         LayerMV_Both("LT_C_UI701", url, 255, 0, 0, 0, 0, 0);
//         LayerMV_Both("LT_C_UI501", url, 255, 0, 0, 0, 0, 0);


        //        LayerMV("LT_C_UQ122", url, 255, 0, 0, 0, 0, 0);

//         layerName = "fff";
//         zzz.LayerMake(layerName, "texture", "F:\\doc\\Talknow-Downloads\\Grs80_TM중부\\LP_PA_CBND.shp");
//         zzz.LayerPolygonMode(layerName, "outline");
//         zzz.LayerVisibleLevel(layerName, 0, 15);
//         zzz.LayerLoad(layerName);

//         layerName = "fff2";
//         zzz.LayerMake(layerName, "texture", "F:\\doc\\Talknow-Downloads\\LMIS_100623.tar\\LT_C_UE101.shp");
//         zzz.LayerPolygonMode(layerName, "outline");
//         //zzz.LayerVisibleLevel(layerName, 0, 20);
//         zzz.LayerLoad(layerName);
// 
// 
//         layerName = "fff3";
//         zzz.LayerMake(layerName, "texture", "F:\\work\\yeasoo\\데이터\\grs80\\LP_AA_EMD.shp");
//         zzz.LayerPolygonMode(layerName, "outline");
//         zzz.LayerVisibleLevel(layerName, 0, 64);
//         zzz.LayerLoad(layerName);

//         layerName = "LP_PA_CBND";
//         zzz.LayerMake(layerName, "texture", url);
//         zzz.LayerTextureLayerType(layerName, "ManuelVector");
//         zzz.LayerPolygonMode(layerName, "outline");
//         zzz.LayerVisibleLevel(layerName, 0, 16);
//         zzz.LayerLoad(layerName);

        //LayerMV("LT_C_UQ1",url,255,0,0);
        //LayerMV("LP_PA_CBND", url, 255, 0, 0);

        //LayerMV_Both("LP_PA_CBND", url, 255, 0, 0, 0, 0, 0);

        //LayerMV("Island", url, 255, 0, 0);

        //LayerMV_Both("RDL_PAVE_AS_REGION", url,255,0,0, 0,0,0);

        


        //LayerTex("expo","F:\\doc\\Talknow-Downloads\\기반시설 등\\EXPO.shp","polygon")


         zzz.LayerTextureUpdate();


        
        
    }

    function Test_WeWon() {
        var layerName;
        // 위원회 테스트

//         layerName = "img";
//         url = "E:\\share\\bound.shp";
//         zzz.LayerMake(layerName, 11, url);
//         zzz.LayerTexture(layerName, "E:\\share\\batch_img.jpg", 1024, 1024);
//         zzz.LayerColor2(layerName, 255, 0, 0, 0);
//         zzz.LayerPolygonMode(layerName, "Both");
//         zzz.LayerOverlay(layerName, true);
//         zzz.LayerLoad(layerName);
//         zzz.LayerFit("img");




        layerName = "img";
        //url = "G:\\bound.shp";
        url = "";
        zzz.LayerMake(layerName, "TextureEdit",url);
        //zzz.LayerTexture(layerName, "G:\\seoul_indexmap_20100204.jpg", 0, 0);
        zzz.LayerTexture(layerName, "F:\\work\\proj\\seouL_we\\radE57B0tmp.png", 0, 0);
        
        //zzz.LayerPolygonMode(layerName, "Both");
        //zzz.LayerCenterInfo(layerName, "Bound2D","0;0;0;0;");

        zzz.LayerColor(layerName, 255, 255, 255, 255);
        //zzz.LayerColor2(layerName, 255, 255, 0, 128);

        //zzz.LayerTexture(layerName, "", 0,0);
        
        
        zzz.LayerLoad(layerName);
// 
//
//         layerName = "RDL_SMRW_LS_polyline";
//         //layerName = "RDL_PROT_LS_polyline";
//         //layerName = "RDL_CTLR_LS_POLYLINE";
//         //layerName = "RDL_RBLN_LS_polyline";
//         //layerName = "RDL_PAVE_AS_REGION";
//         //layerName = "RDL_BRDG_AS_region";
// 
//         //url = "e:\\bound.shp";
//         url = "D:\\temp\\temp_user\\ksic\\seoul_test_0323_01\\cR_img_558\\bound.shp";
//         zzz.LayerMake(layerName, 11, url);
//         //zzz.LayerTexture(layerName, "E:\\seoul_indexmap_20100204.jpg", 2048, 2048);
//         //zzz.LayerPolygonMode(layerName, "Both");
//         //zzz.LayerPolygonMode(layerName, "Outline");
//         
//         //zzz.LayerCenterInfo(layerName, "Bound2D","0;0;0;0;");
// 
// 
//         zzz.LayerLoad(layerName);




        //url = "F:\\doc\\Talknow-Downloads\\도로_347031670_2004_07.dxf";

//         url = zzz.DlgGetPath("Open", "dxf");
//         if (url == "FAIL_NO_PATH") {
//             alert("ff")
//             return;
// 
//         }
//         layerName = "dxf";
//         
//         zzz.LayerMake(layerName, "Texture", url);
//         zzz.LayerLoad(layerName);
//         zzz.LayerTextureUpdate();

//            url="F:\\doc\\Talknow-Downloads\\LMIS\\LT_C_UQ111.shp"
//         zzz.LayerMake(layerName, "texture", url);
// //zzz.LayerTexture(layerName, "E:\\seoul_indexmap_20100204.jpg", 2048, 2048);
//         zzz.LayerPolygonMode(layerName, "Polygon");
// //zzz.LayerPolygonMode(layerName, "Outline");
// 
// //zzz.LayerCenterInfo(layerName, "Bound2D","0;0;0;0;");
// 
// 
// zzz.LayerLoad(layerName);
        
        
        
        //zzz.LayerFit("img");
// 


//        zzz.MouseMode("Edit2DMove");

        


//         layerName = "model";
//         //url = "E:\\share\\model.3DS";
// 
//         url = "E:\\NewGoverment.3DS";
//         zzz.LayerMake(layerName, 6, url);
//         zzz.LayerSceneLayerType(layerName,"Single","");
//         //zzz.LayerCenterInfo(layerName, "SHAPE", "E:\\share\\bound.shp");
//         zzz.LayerLoad(layerName);
        //         zzz.LayerFit("model");


//         layerName = "img";
// 
//         url = "H:\\여수_shp(GRS80)\\여수시 새주소 데이터\\여수시 지적 파일\\lp_pa_bbnd.shp";
//         zzz.LayerMake(layerName, 11, url);
// 
//         zzz.LayerColor(layerName, 255, 0, 0, 128);
// 
// 
//         zzz.LayerLoad(layerName);
// 



    }
    
    var try1=0;
    
    function Test_TerrainEdit(gid) 
    {
        //평면화하기.
        //zzz.TerrainEdit("", "Set", "TerrainBound","","0","");

        // cos180으로 필터링.
        //zzz.TerrainEdit("", "AddFilterCos180", "GID", gid, "100", "");


        
        if(try1==0)        
            zzz.TerrainEdit("", "Set", "GID", gid, "50", "");
        else
            zzz.TerrainEdit("", "Set", "GID", gid, "100", "");

        try1++;
        
        


        
        
        
        
        
        
//         VARIANT_BOOL CzzzCtrl::TerrainEdit(LPCTSTR strOperationID,LPCTSTR Type
// 											 ,LPCTSTR dataType,LPCTSTR data,LPCTSTR data2,LPCTSTR dataTex)

    }

    function Test_cgc() {
        //         // 청계천 지형 모델
        //         layerName = "seoul_cgc_terrain";
        //         url = "http://210.90.46.78:80/SearchMap_3D/loadcgcmodel.jsp";
        //         zzz.LayerMake(layerName, 6, url);
        //         zzz.LayerMaxDistance(layerName, 2000);
        //         zzz.LayerSceneLayerType(layerName, "ListModelTex");
        //         zzz.LayerLoad(layerName);
        // 
        // 
        //         // 청계천 모델
        //         layerName = "cgcgrid";
        //         url = "http://30.30.30.85/seoul/grid/CRC_MODEL_POINT3D.grid";
        //         zzz.LayerMake(layerName, 7, url);
        //         zzz.LayerMaxDistance(layerName, 2000);
        //         zzz.LayerRscPath(layerName, "rsc_cgc");
        //         zzz.LayerLoad(layerName);
        // 
        //         // 청계천 하천
        //         layerName = "seoul_cgc_water";
        //         url = "E:\\share\\h4.shp";
        //         zzz.LayerMake(layerName, 6, url);
        //         zzz.LayerMaxDistance(layerName, 2000);
        //         zzz.LayerSceneLayerType(layerName, "SingleWater");
        //         zzz.LayerHeightInfo(layerName, "", 0, 18);
        //         zzz.LayerLoad(layerName);

        /*
        청계천 shape보기
        */
        //         var layerName;
        //         // 위원회 테스트
        //         layerName = "img";
        //         url = "E:\\share\\h1.shp";
        //         zzz.LayerMake(layerName, 11, url);
        //         zzz.LayerTexture(layerName, "E:\\share\\batch_img.jpg", 128, 128);
        //         zzz.LayerColor2(layerName, 255, 0, 0, 0);
        //         zzz.LayerPolygonMode(layerName, "Both");
        //         zzz.LayerLoad(layerName);
        // 
        // 
        //         layerName = "img2";
        //         url = "E:\\share\\h2.shp";
        //         zzz.LayerMake(layerName, 11, url);
        //         //zzz.LayerTexture(layerName, "E:\\share\\batch_img.jpg", 128, 128);
        //         zzz.LayerColor2(layerName, 255, 255, 0, 0);
        //         zzz.LayerPolygonMode(layerName, "Both");
        //         zzz.LayerLoad(layerName);
        // 
        //         layerName = "img3";
        //         url = "E:\\share\\h3.shp";
        //         zzz.LayerMake(layerName, 11, url);
        //         //zzz.LayerTexture(layerName, "E:\\share\\batch_img.jpg", 128, 128);
        //         zzz.LayerColor2(layerName, 255, 0, 255, 0);
        //         zzz.LayerPolygonMode(layerName, "Both");
        //         zzz.LayerLoad(layerName);
        // 
        //         layerName = "img4";
        //         url = "E:\\share\\h4.shp";
        //         zzz.LayerMake(layerName, 11, url);
        //         //zzz.LayerTexture(layerName, "E:\\share\\batch_img.jpg", 128, 128);
        //         zzz.LayerColor2(layerName, 0, 0, 0, 0);
        //         zzz.LayerPolygonMode(layerName, "Both");
        //         zzz.LayerLoad(layerName);



        //         layerName = "weTerrain";
        //         url = "E:\\share\\terrain.3DS";
        //         zzz.LayerMake(layerName, 6, url);
        //         zzz.LayerSceneLayerType(layerName,"Single");
        //         zzz.LayerLoad(layerName);


        //             layerName = "img";
        //             url = "E:\\share\\UPIS_SHP_UQA122_1.XSM";
        //             zzz.LayerMake(layerName, 11, url);
        //             zzz.LayerUPISColorFIeld(layerName, "UQA122");
        //             zzz.LayerLoad(layerName);
        //             zzz.LayerTexureUpdate();

    }

    function Test_LayerSave() {
        var re=zzz.LayerSaveFile("SideLight", "d:\\t1.lyr");
        //         zzz.LayerSaveFile("SideLight", "F:\\work\\activex_ex\\sidelight_0513_scene.lyr");
// 
//         var re = zzz.LayerGetInfoRsclist("SideLight");
//         alert(re);
        
        //zzz.LayerSaveFile("build", "F:\\work\\activex_ex\\build_0513_scene.lyr");
        //zzz.LayerSaveFile("box", "F:\\work\\activex_ex\\adv_0513_scene.lyr");

        //var re = zzz.LayerSaveFile("road", "F:\\work\\activex_ex\\road_0513_scene.lyr");

        //zzz.Upload("", "http://3dgis.seoul.go.kr/SearchMap_3D/uploadfile.jsp", "F:\\work\\activex_ex\\road_0513_scene.lyr");


        //zzz.AnalysisSave("Prospect", "F:\\work\\activex_ex\\pros_0514.lyr");
        //zzz.AnalysisSave("Visibility", "F:\\work\\activex_ex\\vis_0514.lyr");

        //zzz.TerrainEditSave("", "c:\\1.tef");


    }

    function Test_LayerClear() {

        zzz.TerrainEditClear();
    }

    function Test_LayerOpen() {
        //zzz.LayerOpenFile("img", "c:\\test_0513_scene.lyr");
        //zzz.LayerOpenFile("SideLight", "F:\\work\\activex_ex\\sidelight_0513_scene.lyr");
        //zzz.LayerOpenFile("box", "F:\\work\\activex_ex\\adv_0513_scene.lyr");

        zzz.LayerOpenFile("SideLight", "http://localhost:8080/%ED%85%8D%EC%8A%A4%ED%8A%B8.lyr");
        //zzz.LayerOpenFile("road", "F:\\work\\activex_ex\\road_0513_scene.lyr");


        //zzz.AnalysisOpen("Prospect", "F:\\work\\activex_ex\\pros_0514.lyr");
        //zzz.AnalysisOpen("Visibility", "F:\\work\\activex_ex\\vis_0514.lyr");

        //zzz.LayerOpenFile("TestSingle", "http://30.30.30.85/seoul/layers/build_2010-05-24-15-51-19.lyr");


        //zzz.TerrainEditOpen("", "c:\\1.tef");

        zzz.LayerFit("SideLight");

    }

    var gcam;

    function Test3() {

        //LayerToggle("tem");

        //zzz.BusNaviSpeed(50);
        //zzz.BusNaviPersonMode("1PersonMode");
        //var index = 151;

        //zzz.BusNaviFilter("ROAD_NAME=4.19길2");


        //var start = zzz.BusNaviGetStartNodeID();
        //var end = zzz.BusNaviGetEndNodeID();

        ///alert("Start:" + start + "\n" + "End:" + end);
        
       // var Height = zzz.BusNaviNodeHeight(i);
        //zzz.BusNaviLayerVisible("FULLPATH", false);

        //zzz.BusNaviLayerFit("FULLPATH");
         
        //zzz.BusNaviClear();
        //zzz.LightMode("Night", "");

        //zzz.ObjectSelectedRemove();

        //zzz.TerrainEdit("", "add", "GID", gid, 10, "");

        //zzz.MovieRecordStart();

//         zzz.AnalysisVisibilityInfo("Mode", "3DView");
//         zzz.SetDrawInfo("Color", "0^255^0^128");
//         zzz.SetDrawInfo("Color2", "255^0^0^128");
         //zzz.AnalysisVisibilityStart(g_vis1_x, g_vis1_y, g_vis1_z, g_vis2_x, g_vis2_y, g_vis2_z);

//         var re = zzz.DlgGetPath("save", "image");
        //         alert(re);


        //zzz.AnalysisProspective("End", "");
    
//         zzz.LayerVisible("alldo", true);
        


        //zzz.ObjectSelectedRotate(true, 0, 0, 45);


        //zzz.MouseMode("PickPoint");

        //zzz.LayerRemove("expo");


        //zzz.MouseMode("PickObj");

        //zzz.MovieProjectionPlay("fff", false);


        //zzz.BusNaviClear();


        //gcam=zzz.GetCamMatrix();
        //zzz.TerrainFitClear();
        //zzz.RedrawMap();
        //zzz.LayerTextureUpdate();

//         url = "http://175.196.64.19:8080/servlet/intramapswg.MapService";
//         //LayerMV("RDL_BYCP_AS_REGION", url, 255, 255, 0);
// 
//         LayerMV_Both("LT_C_UQ129", url, 255, 255, 0, 0, 0, 0);
// 
// 
//         zzz.LayerTextureUpdate();


        //zzz.NaviPlay();
        zzz.DlgVisible("BusNavi", false);
        zzz.BusNaviIncreaseSpeed();

    }

    function Test4() {

    }
    
    function Test5() 
    {
        var layerName = "test_seoul";
        url = "C:\\test\\seoul.shp";
        zzz.LayerRemove(layerName);
        zzz.LayerMake(layerName, "Texture", url);
        zzz.LayerPolygonMode(layerName, "Both");
        zzz.LayerColor(layerName, 255, 0, 0, 128);
        zzz.LayerColor2(layerName, 255, 255, 0, 128);
        alert("layerName = " + layerName);
        zzz.LayerLoad(layerName);
    }

    function Test6() {
        var layerName = "test_seoul";
        alert("Test - LayerRemove");
        zzz.LayerRemove(layerName);
    }
    
    
    function Test7() {       
        
        var layerName = "filterLayer";
        url = "D:\\공간정보통신업무\\3차원\\3D_TEST\\서울시_도로구간_Project.shp";
        //url = "D:\\3D_TEST\\seoulShp\\서울시_도로구간_Project.shp";
        zzz.LayerRemove(layerName);
        zzz.LayerMake(layerName, "Texture", url);
        zzz.LayerColor(layerName, 255, 0, 0, 150);
        zzz.LayerLineInfo(layerName, "ByDistance", 10);
        zzz.LayerOverlay(layerName, true);

        t_filter = "RN=여의대로6길";
        zzz.LayerFilter(layerName, t_filter);
        zzz.LayerLoad(layerName);

        var layerSouel = "test_seoul";
        zzz.LayerRemove(layerSouel);
    }


    function Test8() 
    {
        //zzz.ObjectSelectedInvalid();
        //zzz.ToggleIndexMap();
        //zzz.DlgVisible("indexmap", true);
        
        //test code
        zzz.CamZoomUI(0, 5000, true);
    }
    
    //"tunnel";
    //"tunneltext"
    //"tunnel3ds"
    

    // puos 2010 /0823 / 터널 오픈
    function Test_TunnelOpen()
    {

        //ax3d.TunnelModeOpen("e:\\work\\KOICA");
        //ax3d.TunnelModeOpen("http://30.30.30.85/koica/");
        // puos 20101013
        zzz.TunnelModeOpen("C:\\puos_work\\data\\koika");
        //zzz.TunnelModeOpen("http://30.30.30.85/work/koica");
        
        var res;
        res = zzz.TunnelCameraChange("Out");
        //res = ax3d.TunnelCameraChange("Terrain");

        if (res == "TRUE_MODE") 
        {
            //alert(res);
            zzz.LayerVisible("tunnel", true);
            zzz.LayerVisible("tunnel_text", true);
            zzz.LayerVisible("tunnel_3ds", false);
            zzz.LayerVisible("tunnel_wire", false);
            zzz.DlgVisible("TUNNELMAP", true);
            zzz.LayerVisible("terrain", true);
            zzz.LightMode("terrain", "");
        }
           
        
        /*
        zzz.TunnelModeOpen("e:\\work\\KOICA");
        //zzz.TunnelModeOpen("http://30.30.30.85/koica/");   
        zzz.LayerVisible("tunnel", true);
        zzz.LayerVisible("tunnel_text", true);
        zzz.LayerVisible("tunnel_3ds", false);
        zzz.LayerVisible("tunnel_wire", false);
        zzz.TunnelCameraChange("Out");
        zzz.DlgVisible("TUNNELMAP", true);
        /**/
    }

    function Test_TunnelMoving() 
    {

         var res;
         res = zzz.TunnelCameraChange("In");

         if (res == "TRUE_MODE") 
         {
             //alert(res);
             zzz.LayerVisible("tunnel", true);
             zzz.LayerVisible("tunnel_text", false);
             zzz.LayerVisible("tunnel_3ds", true);
             zzz.LayerVisible("tunnel_wire", true);
             zzz.DlgVisible("TUNNELMAP", true);
             zzz.LayerVisible("terrain", false);
             zzz.LightMode("tunnel", "");
         }          
        
        /*
        zzz.LayerVisible("tunnel", true);    
        zzz.LayerVisible("tunnel_text", false);
        zzz.LayerVisible("tunnel_3ds", true);
        zzz.LayerVisible("tunnel_wire", true);
        zzz.TunnelCameraChange("In");
        zzz.DlgVisible("TUNNELMAP", true);
        /**/
    }

    function Test_TunnelClose()
    {


        var res;
        res = zzz.TunnelCameraChange("Terrain");
       
        if(res == "TRUE_MODE")
        {
               //alert(res);

            zzz.LayerVisible("tunnel", false);
            zzz.LayerVisible("tunnel_text", false);
            zzz.LayerVisible("tunnel_3ds", false);
            zzz.LayerVisible("tunnel_wire", false);

            zzz.DlgVisible("TUNNELMAP", false);
            zzz.LayerVisible("terrain", true);
            zzz.LightMode("terrain", "");
        }
      
        /*
        zzz.LayerVisible("tunnel", false);
        zzz.LayerVisible("tunnel_text", false);
        zzz.LayerVisible("tunnel_3ds", false);
        zzz.LayerVisible("tunnel_wire", false);
        zzz.TunnelCameraChange("Out");
        zzz.DlgVisible("TUNNELMAP", false);
        /**/
    }


    function Test11() 
    {
        //test code
         zzz.DlgToggle("CAMERAUI");      
    }
    
   
    function Init() 
    {
        //zzz.CullSet(1, 5000);

        zzz.CamSet("RotateMode", "On");
        //zzz.CamSetZoomRatio(1, 2);
        zzz.CamSetSlide(false);
        zzz.EnvFPSVisible(true);
        zzz.EnvDataSetName("seoul_test2_111207");
        //zzz.EnvSet("ModelCullType", "NONE");
        
        //zzz.EnvSet("BackGroundColor", "255^0^0^128");
        zzz.EnvSet("TerrainLevelfactor", "7");
        zzz.EnvSet("TerrainWebMapUpperLevel", "false");

        //zzz.DlgVisible("MouseCoord", true);


        //zzz.MouseModeOption("Camera", "Zoomin", "WheelForward");
        //zzz.MouseModeOption("Camera", "Panning", "left");
        // puos 20101109
        //zzz.EnvDataSetName("koica");

        //zzz.EventSet("Camera", "on");

        //zzz.EnvSet("TerrainMaxResolution", "0.15");



        zzz.DlgVisible("CameraUI", true);
        zzz.DlgDock("CameraUI", 9); // 위치
        zzz.DlgSet("CameraUIScale", 0.5);  // 크기

        zzz.DlgSet("indexmapscale", "1.0");
        zzz.DlgSet("IndexMapPointerType", "Type1");
        zzz.DlgUrl("indexmap", "D:\\temp\\temp_user\\ksic\\index.png");
         //zzz.DlgUrl("indexmap", "http://30.30.30.3/seoul/seoul_indexmap_20100204.jpg");
         zzz.DlgPos("indexmap", 400, 400);
          //zzz.DlgVisible("indexmap", true);

        
        
        zzz.DlgVisible("Skybox", true);


        zzz.DlgVisible("CameraUI", true);

        //zzz.DlgSet("PopupButtonCount", 1);

        //zzz.OverlaySet("exclude", "ys_real");



        

    }


    //var terra = "inch";



    function test_kgcenter() {
    
    /*
       광주테스트 코드
    */

        layerName = "single";
        zzz.LayerMake(layerName, 6, "H:\\doc\\Talknow-Downloads\\KT과천자산개발센타3ds\\01F.3DS");
        zzz.LayerSceneLayerType(layerName, "Single", "");
        zzz.LayerLoad(layerName);


        zzz.LayerMake(layerName, 6, "H:\\doc\\Talknow-Downloads\\KT과천자산개발센타3ds\\02F.3DS");
        zzz.LayerSceneLayerType(layerName, "Single", "");
        zzz.LayerLoad(layerName);

        zzz.LayerMake(layerName, 6, "H:\\doc\\Talknow-Downloads\\KT과천자산개발센타3ds\\03F.3DS");
        zzz.LayerSceneLayerType(layerName, "Single", "");
        zzz.LayerLoad(layerName);


        zzz.LayerMake(layerName, 6, "H:\\doc\\Talknow-Downloads\\KT과천자산개발센타3ds\\04F.3DS");
        zzz.LayerSceneLayerType(layerName, "Single", "");
        zzz.LayerLoad(layerName);
        zzz.LayerMake(layerName, 6, "H:\\doc\\Talknow-Downloads\\KT과천자산개발센타3ds\\05F.3DS");
        zzz.LayerSceneLayerType(layerName, "Single", "");
        zzz.LayerLoad(layerName);
        zzz.LayerMake(layerName, 6, "H:\\doc\\Talknow-Downloads\\KT과천자산개발센타3ds\\06F.3DS");
        zzz.LayerSceneLayerType(layerName, "Single", "");
        zzz.LayerLoad(layerName);
        zzz.LayerMake(layerName, 6, "H:\\doc\\Talknow-Downloads\\KT과천자산개발센타3ds\\07F.3DS");
        zzz.LayerSceneLayerType(layerName, "Single", "");
        zzz.LayerLoad(layerName);
        zzz.LayerMake(layerName, 6, "H:\\doc\\Talknow-Downloads\\KT과천자산개발센타3ds\\08F.3DS");
        zzz.LayerSceneLayerType(layerName, "Single", "");
        zzz.LayerLoad(layerName);

        zzz.LayerMake(layerName, 6, "H:\\doc\\Talknow-Downloads\\KT과천자산개발센타3ds\\09F.3DS");
        zzz.LayerSceneLayerType(layerName, "Single", "");
        zzz.LayerLoad(layerName);
        zzz.LayerMake(layerName, 6, "H:\\doc\\Talknow-Downloads\\KT과천자산개발센타3ds\\10F.3DS");
        zzz.LayerSceneLayerType(layerName, "Single", "");
        zzz.LayerLoad(layerName);
        zzz.LayerMake(layerName, 6, "H:\\doc\\Talknow-Downloads\\KT과천자산개발센타3ds\\11F.3DS");
        zzz.LayerSceneLayerType(layerName, "Single", "");
        zzz.LayerLoad(layerName);
        zzz.LayerMake(layerName, 6, "H:\\doc\\Talknow-Downloads\\KT과천자산개발센타3ds\\12F.3DS");
        zzz.LayerSceneLayerType(layerName, "Single", "");
        zzz.LayerLoad(layerName);


        zzz.LayerMake(layerName, 6, "H:\\doc\\Talknow-Downloads\\KT과천자산개발센타3ds\\B01F.3DS");
        zzz.LayerSceneLayerType(layerName, "Single", "");
        zzz.LayerLoad(layerName);
        zzz.LayerMake(layerName, 6, "H:\\doc\\Talknow-Downloads\\KT과천자산개발센타3ds\\B02F.3DS");
        zzz.LayerSceneLayerType(layerName, "Single", "");
        zzz.LayerLoad(layerName);
        zzz.LayerMake(layerName, 6, "H:\\doc\\Talknow-Downloads\\KT과천자산개발센타3ds\\B03F.3DS");
        zzz.LayerSceneLayerType(layerName, "Single", "");
        zzz.LayerLoad(layerName);
        zzz.LayerMake(layerName, 6, "H:\\doc\\Talknow-Downloads\\KT과천자산개발센타3ds\\B04F.3DS");
        zzz.LayerSceneLayerType(layerName, "Single", "");
        zzz.LayerLoad(layerName);

        zzz.LayerMake(layerName, 6, "H:\\doc\\Talknow-Downloads\\KT과천자산개발센타3ds\\옥탑1F.3DS");
        zzz.LayerSceneLayerType(layerName, "Single", "");
        zzz.LayerLoad(layerName);
        zzz.LayerMake(layerName, 6, "H:\\doc\\Talknow-Downloads\\KT과천자산개발센타3ds\\옥탑지붕.3DS");
        zzz.LayerSceneLayerType(layerName, "Single", "");
        zzz.LayerLoad(layerName);
    }



    function LayerTerrain(layerName,url) 
    {

        zzz.LayerMake(layerName, "terrain", url);
        zzz.LayerLoad(layerName);
        
    }
    
    
    //지형열기
    function LoadTerrain() {

        Init();
        //서울
        LayerTerrain("terrain", "http://210.90.46.79/3ddb/terrain/seoul_2010.itf");        
        zzz.CamFit();
    }

    //지형열기 - 광명
    function LoadTerrain() {

        Init();        
        LayerTerrain("terrain", "http://210.90.46.79/3ddb/terrain/seoul_2010.itf");
        zzz.CamFit();
    }


    function LoadTexureLayerXSF() {
        zzz.LayerTexureUpdate();    
    }	
	
	function LoadTexureLayer() {
	    var layerName = "";
	    var url = "";
	    zzz.EnvSet("AutoLayerTextureUpdate","on");	    
	    LayerTex("oil", "F:\\work\\proj\\seoul2010\\LINK.shp", "Both", 255, 0, 0);
	    zzz.LayerTextureUpdate();   
	}

	function LoadTexture_TY() {
 	    url = "http://175.196.63.55:80/MapService";
 	    LayerTex("fff", "F:\\doc\\Talknow-Downloads\\건물_도로구간\\TN_SPBR06.shp", "Both", 255, 0, 0);
 	    zzz.LayerTextureUpdate();
	}


	function Seoul_Tex() {
	    LayerTex("gu", "F:\\doc\\Talknow-Downloads\\서울시_구경계.xsf", "Both", 255, 0, 0);
	    zzz.LayerTextureUpdate();	    
	}

	function TexLayer_Road() {
	    layerName = "yeosoo_pave";
	    url = "F:\\work\\yeasoo\\여수시_도로_상하수도\\도로\\RDL_PAVE_AS_region.shp";
	    zzz.LayerMake(layerName, 11, url);
	    zzz.LayerColor(layerName, 255, 0, 0, 128);
	    zzz.LayerLoad(layerName);

	    layerName = "yeosoo_aodr";
	    url = "F:\\work\\yeasoo\\여수시_도로_상하수도\\하수도\\SWL_AODR_AS_region.shp";
	    zzz.LayerMake(layerName, 11, url);
	    zzz.LayerColor(layerName, 255, 0, 255, 128);
	    zzz.LayerLoad(layerName);   
	}

	function TexLayer_Hasu() {
	    layerName = "yeosoo_ha_1";
	    url = "F:\\work\\yeasoo\\여수시_도로_상하수도\\하수도\\SWL_PIPE_LM_polyline.shp";
	    zzz.LayerMake(layerName, 11, url);
	    zzz.LayerColor(layerName, 0, 0, 255, 255);
	    zzz.LayerLineInfo(layerName, "ByDistance", 0.5);
	    zzz.LayerVisibleLevel(layerName, 0, 30);
	    zzz.LayerLoad(layerName);
	}

	function TexLayer_Sangsu() {
	    layerName = "yeosoo_sang_1";
	    url = "F:\\work\\yeasoo\\여수시_도로_상하수도\\상수도\\WTL_SPLY_LS_polyline.shp";
	    zzz.LayerMake(layerName, 11, url);
	    zzz.LayerColor(layerName, 255, 0, 0, 255);
	    zzz.LayerLineInfo(layerName, "ByDistance", 0.5);
	    zzz.SetVisibleLevel(layerName, 0, 10);
	    zzz.LayerLoad(layerName);
	}

	function LoadLayer_Eng() {
	    // 주요도로.
	    layerName = "main_road";
	    url = "http://30.30.30.85/seoul/grid/SEOUL_ROAD_MAIN.grid";
	    zzz.LayerMake(layerName, 7, url);
	    zzz.LayerMaxDistance(layerName, 1000);
	    zzz.LayerLineInfo(layerName, "", 20);
	    zzz.LayerTextInfo(layerName, "", "", false, 20);
	    zzz.LayerColor(layerName, 255, 255, 0, 192);
	    zzz.LayerColor2(layerName, 255, 0, 0, 255);
	    zzz.LayerLoad(layerName);

// 	    layerName = "main_road_eng";
// 	    url = "http://30.30.30.85/seoul/works/eng/grid/SEOUL_ROAD_MAIN_ENG.grid";
// 	    zzz.LayerMake(layerName, 7, url);
// 	    zzz.LayerMaxDistance(layerName, 1000);
// 	    zzz.LayerLineInfo(layerName, "", 20);
// 	    zzz.LayerTextInfo(layerName, "", "", false, 15);
// 	    zzz.LayerColor2(layerName, 255, 0, 0, 255);
// 	    zzz.LayerLoad(layerName);


	    // 	    layerName = "bridge";
// 	    url = "http://30.30.30.85/seoul/grid_seocho_old2/SEOUL_SI_HANBRIDGE.grid";
// 	    zzz.LayerMake(layerName, 7, url);
// 	    zzz.LayerRscPath(layerName, "rsc_bridge");
// 	    zzz.LayerMaxDistance(layerName, 8000);
// 	    zzz.LayerLoad(layerName);
// 
// 
	    layerName = "bridge_eng_name";
	    url = "http://30.30.30.85/seoul/works/eng/grid/E_POI_MAINBRIDGE.grid";
	    zzz.LayerMake(layerName, 7, url);
	    zzz.LayerMaxDistance(layerName, 8000);
	    zzz.LayerLoad(layerName);
// 
// 
// 	    layerName = "gu_name_eng";
// 	    url = "http://30.30.30.85/seoul/works/eng/grid/ECJ_POI_GU.grid";
// 	    zzz.LayerMake(layerName, 7, url);
// 	    zzz.LayerMaxDistance(layerName, 100000);
// 	    zzz.LayerLoad(layerName);
// 
// 	    layerName = "dong_name_eng";
// 	    url = "http://30.30.30.85/seoul/works/eng/grid/POI_BOUNDARY_BDONG.grid";
// 	    zzz.LayerMake(layerName, 7, url);
// 	    zzz.LayerMaxDistance(layerName, 4000);
// 	    zzz.LayerTextInfo(layerName, "", "", false, 14);
// 	    
// 	    zzz.LayerLoad(layerName);
// 
// 
// 	    // 지하철 역 이름
// 	    layerName = "subway_name_eng";
// 	    url = "http://30.30.30.85/seoul/works/eng/grid/SUBWAY_STANAME.grid";
// 
// 	    zzz.LayerMake(layerName, 7, url);
// 	    zzz.LayerMaxDistance(layerName, 2000);
// 	    zzz.LayerTextInfo(layerName, "", "", false, 12);
// 	    zzz.LayerLoad(layerName);
// 
// 
// 
// 	    // 지하철 입구 모델
	    layerName = "subway_exit_model";
	    url = "http://30.30.30.85/seoul/grid/SEOUL_SUBWAY_EXIT_MODEL.grid";
	    zzz.LayerMake(layerName, 7, url);
	    zzz.LayerRscPath(layerName, "rsc_subexit");
	    zzz.LayerMaxDistance(layerName, 2000);
	    zzz.LayerLoad(layerName);


	    layerName = "subway_exit_model_num";
	    url = "http://30.30.30.85/seoul/works/eng/grid/SEOUL_SUBWAY_EXIT_NAME_NUM.grid";
	    zzz.LayerMake(layerName, 7, url);
	    zzz.LayerRscPath(layerName, "rsc_subexit");
	    zzz.LayerMaxDistance(layerName, 2000);
	    zzz.LayerLoad(layerName);

// // 
// // 	    // 지하철 입구 이름.
// 	    layerName = "subway_exit_name";
// 	    url = "http://30.30.30.85/seoul/grid/SEOUL_SUBWAY_EXIT_NAME.grid";
// 	    zzz.LayerMake(layerName, 7, url);
// 	    zzz.LayerMaxDistance(layerName, 500);
// 	    zzz.LayerTextInfo(layerName, "", "", false, 10);
// 
// 	    zzz.LayerLoad(layerName);
// 
// 
// // 	    // 지하철 역 이름
// // 	    layerName = "subway_name";
// // 	    url = "http://30.30.30.85/seoul/grid/SEOUL_SUBWAY_NAME.grid";
// // 	    zzz.LayerMake(layerName, 7, url);
// // 	    zzz.LayerMaxDistance(layerName, 2000);
// // 	    zzz.LayerTextInfo(layerName, "", "", false, fontBase);
// // 	    zzz.LayerLoad(layerName);
// 
// 	    //지하철 폴리곤
// 	    layerName = "subway_polygon";
// 	    url = "http://30.30.30.85/seoul/grid/SEOUL_SUBWAY_POLYGON.grid";
// 	    zzz.LayerMake(layerName, 7, url);
// 	    zzz.LayerMaxDistance(layerName, 2000);
// 	    zzz.LayerLoad(layerName);




// 	    var fontGu = 24;
// 
// 	    // 행정경계 구 이름
// 	    layerName = "bound_gu_name";
// 	    url = "http://30.30.30.85/seoul/grid/SEOUL_BOUND_GU_NAME.grid";
// 	    zzz.LayerMake(layerName, 7, url);
// 	    zzz.LayerMaxDistance(layerName, 30000);
// 	    zzz.LayerTextInfo(layerName, "", "", false, fontGu);
// 
// 	    zzz.LayerLoad(layerName);



	}

	function LoadLayer_Seoul() {
	    var fontBase = 14;
	    var fontSmall = 12;
	    var fontGu = 24;
	    var fontDong = 16;
	    var fontRoad = 20;

	    var layerName = "";
	    var url = "";
	    switch (terra) {
	        case "se":

	            // 	            // 모델 IOM
	            // 	            layerName = "modeliom";
	            // 	            //url = "http://123.140.221.251:9000/DX/grid/SEOUL_SI_MODEL_BUILDING_091009.grid";
	            // 	            url = "http://30.30.30.85/seoul/work_old/grid/SEOUL_SI_MODEL_BUILDING_091009.grid";
	            // 
	            // 	            zzz.LayerMake(layerName, 7, url);
	            // 	            zzz.LayerRscPath(layerName, "rsc_iom");
	            // 	            zzz.LayerMaxDistance(layerName, 4000);
	            // 	            zzz.LayerLoad(layerName);
	            // 
	            // 	            // 
	            // 	            // 
	            // 	            // 	            layerName = "general";
	            // 	            // 	            url = "http://123.140.221.251:9000/DX/grid/SEOUL_SI_3DGENERAL_BUILDING_091103.grid";
	            // 	            // 	            
	            // 	            // 	            zzz.LayerMake(layerName, 7, url);
	            // 	            // 	            zzz.LayerRscPath(layerName, "rsc");
	            // 	            // 	            zzz.LayerMaxDistance(layerName, 2000);
	            // 	            // 	            zzz.LayerLoad(layerName);
	            // 	            // 
	            // 	            //
	            // 
	            // 	            // 모델 여의도
	            // 	             	            layerName = "yeo";
	            // 	             	            url = "http://123.140.221.251:9000/DX/grid/3D_MODEL_3D_POLYGON.grid";
	            // 	             	            zzz.LayerMake(layerName, 7, url);
	            // 	             	            zzz.LayerRscPath(layerName, "rsc_yeo");
	            // 	             	            zzz.LayerMaxDistance(layerName, 4000);
	            // 	             	            zzz.LayerLoad(layerName);
	            // 
	            // 
	            // 	            layerName = "3d_name";
	            // 	            url = "http://30.30.30.85/seoul/grid/SEOUL_MODEL_NAME_0422.grid";
	            // 
	            // 	            zzz.LayerMake(layerName, 7, url);
	            // 	            zzz.LayerMaxDistance(layerName, 2000);
	            // 	            zzz.LayerTextInfo(layerName, "", "", false, fontBase);
	            // 	            zzz.LayerLoad(layerName);
	            // 
	            // 
	            // 	            // 일반건물
	            // 	            layerName = "general";
	            // 	            //url = "http://123.140.221.251:9000/DX/grid/SEOUL_SI_3DGENERAL_BUILDING_091103_roof.grid";
	            // 	            url = "http://30.30.30.85/seoul/grid/test/SEOUL_SI_3DGENERAL_BUILDING_091103_roof.grid";
	            // 
	            // 	            zzz.LayerMake(layerName, 7, url);
	            // 	            zzz.LayerRscPath(layerName, "rsc");
	            // 	            zzz.LayerMaxDistance(layerName, 2000);
	            // 	            zzz.LayerLoad(layerName);
	            // 
	            // 
	            // 
	            // 	            layerName = "general_name";
	            // 	            url = "http://30.30.30.85/seoul/grid/SEOUL_GENERAL_NAME.grid";
	            // 
	            // 	            zzz.LayerMake(layerName, 7, url);
	            // 	            zzz.LayerMaxDistance(layerName, 2000);
	            // 	            zzz.LayerTextInfo(layerName, "", "", false, fontBase);
	            // 	            zzz.LayerLoad(layerName);
	            // 
	            // 	            // 지하철 입구 모델
	            // 	            layerName = "subway_exit_model";
	            // 	            url = "http://30.30.30.85/seoul/grid/SEOUL_SUBWAY_EXIT_MODEL.grid";
	            // 	            zzz.LayerMake(layerName, 7, url);
	            // 	            zzz.LayerRscPath(layerName, "rsc_subexit");
	            // 	            zzz.LayerMaxDistance(layerName, 500);
	            // 	            zzz.LayerLoad(layerName);
	            // 
	            // 	            // 지하철 입구 이름.
	            // 	            layerName = "subway_exit_name";
	            // 	            url = "http://30.30.30.85/seoul/grid/SEOUL_SUBWAY_EXIT_NAME.grid";
	            // 	            zzz.LayerMake(layerName, 7, url);
	            // 	            zzz.LayerMaxDistance(layerName, 500);
	            // 	            zzz.LayerTextInfo(layerName, "", "", false, fontSmall);
	            // 	            
	            // 	            zzz.LayerLoad(layerName);
	            // 
	            // 	            // 지하철 역 이름
	            // 	            layerName = "subway_name";
	            // 	            url = "http://30.30.30.85/seoul/grid/SEOUL_SUBWAY_NAME.grid";
	            // 	            zzz.LayerMake(layerName, 7, url);
	            // 	            zzz.LayerMaxDistance(layerName, 2000);
	            // 	            zzz.LayerTextInfo(layerName, "", "", false, fontBase);
	            // 	            zzz.LayerLoad(layerName);
	            // 
	            // 
	            // 	            //지하철 폴리곤
	            // 	            layerName = "subway_polygon";
	            // 	            url = "http://30.30.30.85/seoul/grid/SEOUL_SUBWAY_POLYGON.grid";
	            // 	            zzz.LayerMake(layerName, 7, url);
	            // 	            zzz.LayerMaxDistance(layerName, 2000);
	            // 	            zzz.LayerLoad(layerName);
	            // 
	            // 
	            // 	            // 다리 이름
	            // 	            layerName = "bridge_name";
	            // 	            url = "http://30.30.30.85/seoul/grid/SEOUL_SI_HANBRIDGE_LABEL.grid";
	            // 	            zzz.LayerMake(layerName, 7, url);
	            // 	            zzz.LayerMaxDistance(layerName, 8000);
	            // 	            zzz.LayerTextInfo(layerName, "", "", false, fontBase);
	            // 	            
	            // 	            zzz.LayerLoad(layerName);
	            // 
	            //다리
	            layerName = "bridge";
	            url = "http://30.30.30.85/seoul/grid_seocho_old2/SEOUL_SI_HANBRIDGE.grid";
	            zzz.LayerMake(layerName, 7, url);
	            zzz.LayerRscPath(layerName, "rsc_bridge");
	            zzz.LayerMaxDistance(layerName, 8000);
	            zzz.LayerLoad(layerName);


	            layerName = "bridge_eng_name";
	            url = "http://30.30.30.85/seoul/works/eng/grid/E_POI_MAINBRIDGE.grid";
	            zzz.LayerMake(layerName, 7, url);
	            zzz.LayerMaxDistance(layerName, 8000);
	            zzz.LayerLoad(layerName);

	            // 
	            // 
	            // 	            // 버스정류장 네임
	            // 	            layerName = "bustop_name";
	            // 	            url = "http://30.30.30.85/seoul/grid/SEOUL_SI_BUSSTOP_NAME.grid";
	            // 	            zzz.LayerMake(layerName, 7, url);
	            // 	            zzz.LayerMaxDistance(layerName, 500);
	            // 	            zzz.LayerTextInfo(layerName, "", "", false, fontSmall);
	            // 	            
	            // 	            
	            // 	            zzz.LayerLoad(layerName);
	            // 
	            // 	            // 버스정류장 모델
	            // 	            layerName = "bustop";
	            // 	            url = "http://30.30.30.85/seoul/grid/SEOUL_SI_BUSSTOP.grid";
	            // 	            zzz.LayerMake(layerName, 7, url);
	            // 	            zzz.LayerMaxDistance(layerName, 500);
	            // 	            zzz.LayerRscPath(layerName, "rsc_busstop");
	            // 	            zzz.LayerLoad(layerName);
	            // 
	            // 	            // 가로수
	            // 	            layerName = "roadtree";
	            // 	            url = "http://30.30.30.85/seoul/grid/SEOUL_SI_ROADTREE_090216.grid";
	            // 	            zzz.LayerMake(layerName, 7, url);
	            // 	            zzz.LayerMaxDistance(layerName, 500);
	            // 	            zzz.LayerRscPath(layerName, "rsc_roadtree");
	            // 	            zzz.LayerLoad(layerName);
	            // // 
	            // 
	            // 	            // 교차로 이름
	            // 	            layerName = "road_intersection";
	            // 	            url = "http://30.30.30.85/seoul/grid/SEOUL_ROAD_INTERSECTION_NAME3D.grid";
	            // 	            zzz.LayerMake(layerName, 7, url);
	            // 	            zzz.LayerMaxDistance(layerName, 1000);
	            // 	            zzz.LayerTextInfo(layerName, "", "", false, fontBase);
	            // 	            zzz.LayerLoad(layerName);
	            // 
	            // 
	            // 	            // 주요도로.
	            // 	            layerName = "main_road";
	            // 	            url = "http://30.30.30.85/seoul/grid/SEOUL_ROAD_MAIN.grid";
	            // 	            zzz.LayerMake(layerName, 7, url);
	            // 	            zzz.LayerMaxDistance(layerName, 1000);
	            // 	            zzz.LayerLineInfo(layerName, "", 20);
	            // 	            zzz.LayerTextInfo(layerName, "", "", false, fontRoad);
	            // 	            zzz.LayerColor2(layerName, 255, 0, 0, 255);
	            // 	            zzz.LayerLoad(layerName);
	            // 
	            // 
	            // 	            // 행정경계 구 이름
	            // 	            layerName = "bound_gu_name";
	            // 	            url = "http://30.30.30.85/seoul/grid/SEOUL_BOUND_GU_NAME.grid";
	            // 	            zzz.LayerMake(layerName, 7, url);
	            // 	            zzz.LayerMaxDistance(layerName, 30000);
	            // 	            zzz.LayerTextInfo(layerName, "", "", false, fontGu);
	            // 	            
	            // 	            zzz.LayerLoad(layerName);
	            // 
	            // 
	            // 	            // 행정경계 동 이름
	            // 	            layerName = "bound_dong_name";
	            // 	            url = "http://30.30.30.85/seoul/grid/SEOUL_BOUND_DONG_NAME.grid";
	            // 	            zzz.LayerMake(layerName, 7, url);
	            // 	            zzz.LayerMaxDistance(layerName, 2000);
	            // 
	            // 	            zzz.LayerTextInfo(layerName, "", "", false, fontDong);
	            // 	            zzz.LayerLoad(layerName); 
	            // 	            

	        case "inch":
	            break;
	    }
	
	}

	function LoadWFS() {

// 	    function LayerPointText(layerName, fieldName, Distance, BlockSize, R, G, B, textSize) {
// 	        IMap3DActiveX.LayerMake(layerName, "Grid", "http://20.20.20.76:8888/IntraMap/GetFeatureAttribute");
// 	        IMap3DActiveX.LayerMaxDistance(layerName, Distance);
// 	        IMap3DActiveX.LayerDepthInfo(layerName, "off");
// 	        IMap3DActiveX.LayerGridLayerType(layerName, "PointText");
// 	        IMap3DActiveX.LayerGridBlockSize(layerName, BlockSize);
// 	        //시군구-SGG_NM, 읍면동-EMD_NM, 리-RI_NM, 연속지적도-JIBUN	섬-NAME
// 	        IMap3DActiveX.LayerGridFields(layerName, fieldName);
// 	        IMap3DActiveX.LayerColor(layerName, R, G, B, 128);
// 	        IMap3DActiveX.LayerTextInfo(layerName, "", "", false, textSize);
// 	        IMap3DActiveX.LayerLoad(layerName);
// 	    }

// 	    IMap3DActiveX.LayerMake("LP_AA_EMD_GRS80_", "Grid", "http://20.20.20.76:8888/IntraMap/GetFeatureAttribute");
// 	    IMap3DActiveX.LayerMaxDistance(layerName, 4000);
// 	    IMap3DActiveX.LayerDepthInfo(layerName, "off");
// 	    IMap3DActiveX.LayerGridLayerType(layerName, "PointText");
// 	    IMap3DActiveX.LayerGridBlockSize(layerName, 1000);
// 	    //시군구-SGG_NM, 읍면동-EMD_NM, 리-RI_NM, 연속지적도-JIBUN	섬-NAME
// 	    IMap3DActiveX.LayerGridFields(layerName, "EMD_NM");
// 	    IMap3DActiveX.LayerColor(layerName, R, G, B, 128);
// 	    IMap3DActiveX.LayerTextInfo(layerName, "", "", false, 12);
// 	    IMap3DActiveX.LayerLoad(layerName);

	    //LayerWFSPointSphere("WTL_VALV_PS", "http://20.20.20.76:8080/IntraMap/GetFeatureAttribute", 255, 0, 0);
	    
	    /*
	     *  BML_NAME_PS
	     XID	
	     *
	     */

	    url="http://175.196.63.55/IntraMap/GetFeatureAttribute";
	    //LayerWFSPointIcon("OIL", url);

	    zzz.Envset("Incoding", "EUCKR");
	    LayerWFSPointText("OIL", url,"OIL_NAME",255,0,0,16);
	
	
	}
	
	function LoadGrid() {


	    //LoadLayer_Eng();

// 	    layerName = "gen";
// 	    url = "E:\\yeosoo\\works\\grid\\YEOSU_BLDG.grid";
// 	    zzz.LayerMake(layerName, 7, url);
// 	    zzz.LayerMaxDistance(layerName, 4000);
// 	    zzz.LayerRscPath(layerName, "rsc");
// 	    zzz.LayerLoad(layerName);



// 	    layerName = "model";
// 	    url = "E:\\yeosoo\\works\\grid\\KSIC_MODEL.grid";
// 	    zzz.LayerMake(layerName, 7, url);
// 	    zzz.LayerMaxDistance(layerName, 10000);
// 	    zzz.LayerRscPath(layerName, "rsc_model");
// 	    zzz.LayerLoad(layerName);


	    //LoadGrid_Seoul();



	    //LayerGrid("hammodel", "G:\\down\\YEOSU1 - 복사본.grid", 4000, "RSC");
	    //LayerGrid("hammodel", "http://20.20.20.23:8080/Service/Grid/HAMAN_MODEL_54P_3D.grid", 4000, "");
	    //LayerGrid("hammodel", "F:\\work\\proj\\haman\\Grid\\HAMAN_MODEL_54P_3D.grid", 4000, "");

	    //LayerGrid("yjb4", "F:\\work\\proj\\yjb\\grid\\RYJ.grid", 4000, "");
	    //LayerGrid("yjb4", "F:\\work\\proj\\yjb\\사면new\\UJB.grid", 4000, "output");
	    //LayerGrid("yjb4", "http://175.196.64.85/yjb/UJB.GRID", 4000, "rsc");
	    //LayerGrid("safe", "F:\\work\\proj\\yjb\\test\\grid\\안전표지판.grid", 4000, "");

	    //LayerGrid("yjb5", "C:\\3dsdumptest\\works\\1\\grid\\RYJ.grid", 4000, "");
	    LayerGrid("yjb5", "F:\\work\\last\\proj\\3dweb\\의정부 공간업무 지원시스템 구축\\data\\grid\\4face_share\\RYJ.grid", 4000, "");

	    //LayerGrid("roadpan", "G:\\down\\roadpan\\roadpan.grid", 10000, "");

	    //LayerGrid("yjb4face", "F:\\work\\proj\\yjb\\works\\grid\\01CO.grid", 10000, "");
	    //LoadGrid_ty();
	    //LoadGrid_Yeosu();
	    //LoadWFS();

	    //url = "F:\\work\\yjb\\Grid_ui\\LIGHT_RAIL_3D.grid"; LayerGrid("rail", url, 10000, "rsc");
	    //url = "F:\\work\\proj\\usn\\grid2\\TEST_TESTLAP_OVERLAP.grid"; LayerGrid("usn", url, 3000, "rsc");
	    //zzz.LayerFit("rail");

	    //url = "F:\\work\\eco\\terrain\\3d 요청\\3d 요청\\grid\\BUILDING.grid"; LayerGrid("BUILDING", url, 15000, "");

	    //LayerGrid("gb", "G:\\KSIC Data\\의정부\\그리드 변환관련\\grid_지형높이확인\\LP_PA_CBND_PT_3D.grid", 4000, "");


	    //LayerGrid("yjb_br", "F:\\work\\proj\\yjb\\grid\\bridge\\BRIGE.grid", 8000, "");
	    
	    
	    
	    
	    
	}
	function ScreenSave() {
	    //zzz.ScreenSave("c:\\test.png");

	    zzz.ScreenSaveEx("c:\\11111.jpg","","");
	    
	    
	}
	
	function IndexMap()
	{
		zzz.SetIndexMap(4);	
		zzz.ToggleIndexMap();	

	}
	
	function ShowFunctions(nGroupID)
	{
		if(nGroupID == 0)
		{
			document.all.group0.style.display = '';     // 해당 컨트롤을 show\
			document.all.group1.style.display = '';     // 해당 컨트롤을 show
			document.all.group2.style.display = 'none'; // 해당 컨트롤을 hide
			document.all.group3.style.display = 'none';					
			document.all.group4.style.display = 'none';					
		}
		else if(nGroupID == 1)
		{
			document.all.group0.style.display = '';
			document.all.group1.style.display = 'none';
			document.all.group2.style.display = '';
			document.all.group3.style.display = 'none';					
			document.all.group4.style.display = 'none';					
		}
		else if(nGroupID == 2)
		{
			document.all.group0.style.display = '';
			document.all.group1.style.display = 'none';
			document.all.group2.style.display = 'none';
			document.all.group3.style.display = '';
			document.all.group4.style.display = 'none';					
		}
		
		else if(nGroupID == 3)
		{
			document.all.group0.style.display = '';
			document.all.group1.style.display = 'none';
			document.all.group2.style.display = 'none';
			document.all.group3.style.display = 'none';
			document.all.group4.style.display = '';					
		}
}


function clickshow(num) {
    for (i = 1; i <= 22; i++) {
        menu = eval("document.all.block" + i + ".style");
        imgch = eval("document.bar" + i);

        if (num == i) {
            if (menu.display == "block") {
                menu.display = "none";
                imgch.src = "/Yeosu3D/img/p_icon.gif";
            }
            else {
                menu.display = "block";
                imgch.src = "/Yeosu3D/img/m_icon.gif";
            }
        }
    }
}

function CheckBox_Control(obj) {
    if (obj.infType == "Data") {
        if (obj.checked == true && obj.value == "terrain") {
            top.Terrain_Control(obj.value, obj.checked);
        }
        else if (obj.checked == false && obj.value == "terrain") {
            top.Terrain_Control(obj.value, obj.checked);
        }
        else if (obj.checked == true && obj.value == "dem") {
            top.Dem_Hidden();
        }
        else if (obj.checked == false && obj.value == "dem") {
            top.Dem_Visible();
        }
    }
    if (obj.infType == "Grid") {
        if (obj.checked == true && obj.infLoad != "Y") {
            top.Grid_Load(obj.value, obj.infRsc);
            obj.infLoad = "Y";

            if (obj.value == "YEOSU") {
                top.Grid_Load("ys_real", "RSC_Real");
            }
        }
        else {
            top.Layer_Control(obj.value, obj.checked);

            if (obj.value == "YEOSU") {
                top.Layer_Control("ys_real", obj.checked);
            }
        }
    }
    if (obj.infCate == "Future_Poly" || obj.infCate == "Nomal" || obj.infCate == "Road" || obj.infCate == "Water" || obj.infCate == "Sewage" || obj.infCate == "CityPlan") {
        if (obj.checked == true && obj.infType == "MV_Line" && obj.infLoad != "Y") {
            top.LayerMV_Line(obj.value, 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB, 'ByDistance', 1);
            obj.infLoad = "Y";
        }
        else if (obj.checked == true && obj.infType == "MV" && obj.infLoad != "Y") {
            top.LayerMV(obj.value, 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB, obj.infSymbolPath);
            obj.infLoad = "Y";

            if (obj.value == "UQF110") {
                top.LayerMV("UQF120", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB, obj.infSymbolPath);
            }
            else if (obj.value == "UQG110") {
                top.LayerMV("UQG130", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB, obj.infSymbolPath);
            }
            else if (obj.value == "UQH110") {
                top.LayerMV("UQH10", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB, obj.infSymbolPath);
            }
            else if (obj.value == "UQL110") {
                top.LayerMV("UQL140", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB, obj.infSymbolPath);
            }
            else if (obj.value == "UQN100") {
                top.LayerMV("UQN110", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB, obj.infSymbolPath);
                top.LayerMV("UQN120", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB, obj.infSymbolPath);
                top.LayerMV("UQN140", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB, obj.infSymbolPath);
            }

            //기반시설
            if (obj.value == "UQS100") {
                top.LayerMV("UQS102", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB);
                top.LayerMV("UQS103", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB);
                top.LayerMV("UQS112", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB);
                top.LayerMV("UQS113", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB);
                top.LayerMV("UQS114", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB);
                top.LayerMV("UQS115", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB);
                top.LayerMV("UQS116", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB);
                top.LayerMV("UQS117", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB);
                top.LayerMV("UQS118", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB);
                top.LayerMV("UQS119", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB);
                top.LayerMV("UQS120", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB);
                top.LayerMV("UQS121", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB);
                top.LayerMV("UQS122", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB);
            }
            else if (obj.value == "UQS200") {
                top.LayerMV("UQS210", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB);
                top.LayerMV("UQS290", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB);
                top.LayerMV("UQS300", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB);
                top.LayerMV("UQS310", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB);
                top.LayerMV("UQS410", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB);
                top.LayerMV("UQS500", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB);
                top.LayerMV("UQS700", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB);
                top.LayerMV("UQS800", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB);
                top.LayerMV("UQS910", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB);
            }
        }
        else if (obj.checked == true && obj.infType == "MV_Outline" && obj.infLoad != "Y") {
            top.LayerMV_Outline(obj.value, 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB, obj.infVisibleLevel);
            obj.infLoad = "Y";

            //행정구역 체크시 읍면동, 리 같이
            if (obj.value == "LP_AA_EMD") {
                top.LayerMV_Outline("LP_AA_RI", 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB, obj.infVisibleLevel);
            }

            //연속지적도,행정구역 텍스트표시
            if (obj.infCate = "Nomal") {
                if (obj.value == "LP_PA_CBND") {
                    top.LayerPointText("LP_PA_CBND_text", "JIBUN", "2000", "500", "255", "255", "0");
                }
                else if (obj.value == "LP_AA_EMD") {
                    top.LayerPointText("LP_AA_EMD_text", "EMD_NM", "50000", "10000", "255", "255", "0");
                    top.LayerPointText("LP_AA_RI_text", "RI_NM", "50000", "10000", "255", "255", "0");
                    top.LayerPointText("Island_Point", "NAME", "50000", "10000", "051", "0", "0");
                }
            }

            //엑스포 텍스트표시
            if (obj.value == "EXPO_polyline") {
                top.LayerPointText("EXPO_Point", "CODE", "5000", "1000", "255", "255", "0");
            }
        }
        else if (obj.checked == true && obj.infType == "MV_Both" && obj.infLoad != "Y") {
            top.LayerMV_Both(obj.value, 'http://110.2.2.49:8080/MapService', obj.infColorR, obj.infColorG, obj.infColorB, 0, 0, 0);
            obj.infLoad = "Y";
        }
        else if (obj.checked == true && obj.infType == "PointSphere" && obj.infLoad != "Y") {
            top.LayerPointSphere(obj.value);
            obj.infLoad = "Y";
        }
        else if (obj.checked == true && obj.infType == "PointIcon" && obj.infLoad != "Y") {
            top.LayerWFSPointIcon(obj.value, obj.infIconPath);
            obj.infLoad = "Y";
        }
        else {
            top.Layer_Control(obj.value, obj.checked);

            if (obj.value == "LP_AA_EMD") {
                top.Layer_Control("LP_AA_RI", obj.checked);
            }

            if (obj.infCate = "Nomal") {
                if (obj.value == "LP_PA_CBND") {
                    top.Layer_Control("LP_PA_CBND_text", obj.checked);
                }
                else if (obj.value == "LP_AA_EMD") {
                    top.Layer_Control("LP_AA_EMD_text", obj.checked);
                    top.Layer_Control("LP_AA_RI_text", obj.checked);
                    top.Layer_Control("Island_Point", obj.checked);
                }
            }

            if (obj.value == "UQF110") {
                top.Layer_Control("UQF120", obj.checked);
            }
            else if (obj.value == "UQG110") {
                top.Layer_Control("UQG130", obj.checked);
            }
            else if (obj.value == "UQH110") {
                top.Layer_Control("UQH10", obj.checked);
            }
            else if (obj.value == "UQL110") {
                top.Layer_Control("UQL140", obj.checked);
            }
            else if (obj.value == "UQN100") {
                top.Layer_Control("UQN110", obj.checked);
                top.Layer_Control("UQN120", obj.checked);
                top.Layer_Control("UQN140", obj.checked);
            }

            if (obj.value == "UQS100") {
                top.Layer_Control("UQS102", obj.checked);
                top.Layer_Control("UQS103", obj.checked);
                top.Layer_Control("UQS112", obj.checked);
                top.Layer_Control("UQS113", obj.checked);
                top.Layer_Control("UQS114", obj.checked);
                top.Layer_Control("UQS115", obj.checked);
                top.Layer_Control("UQS116", obj.checked);
                top.Layer_Control("UQS117", obj.checked);
                top.Layer_Control("UQS118", obj.checked);
                top.Layer_Control("UQS119", obj.checked);
                top.Layer_Control("UQS120", obj.checked);
                top.Layer_Control("UQS121", obj.checked);
                top.Layer_Control("UQS122", obj.checked);
            }
            else if (obj.value == "UQS200") {
                top.Layer_Control("UQS210", obj.checked);
                top.Layer_Control("UQS290", obj.checked);
                top.Layer_Control("UQS300", obj.checked);
                top.Layer_Control("UQS310", obj.checked);
                top.Layer_Control("UQS410", obj.checked);
                top.Layer_Control("UQS500", obj.checked);
                top.Layer_Control("UQS700", obj.checked);
                top.Layer_Control("UQS800", obj.checked);
                top.Layer_Control("UQS910", obj.checked);
            }

            if (obj.value == "EXPO_polyline") {
                top.Layer_Control("EXPO_Point", obj.checked);
            }
        }
    }
}
	
	
</script>

    <!-- fire fire fire fire ----------------------------------------- -->

    <script language="javascript" for="zzz" event="OnCameraZoom()">
	 
	    EventOnCameraZoom();
    </script>

    <script language="javascript" for="zzz" event="OnCameraRotate()">
	 
	    EventOnCameraRotate();
    </script>

    <script language="javascript" for="zzz" event="OnCameraMove()">
	 
	    EventOnCameraMove();
    </script>

    <script language="javascript" for="zzz" event="OnObjectClick(layerName,ID)">
	 
	 
	 EventOnObjClick(layerName,ID);
	 
    </script>

    <script language="javascript" for="zzz" event="OnIconClick(layerName,ID)">
	 
	 EventOnIconClick(layerName,ID);
    </script>

    <script language="javascript" for="zzz" event="OnPickPointButton(stra,x,y,z)">
	 
	 alert(stra+":"+x+":"+y+":"+z);
    </script>

    <script language="javascript" for="zzz" event="OnPickPoint(x,y,z)">
	 

        //Test_SingleModel(x,y,z);
        EventOnPickPoint(x,y,z);

    </script>

    <script language="javascript" for="zzz" event="OnPickPointNormal(x,y,z,nx,ny,nz)">
	
    EventOnPickPointNormal(x,y,z,nx,ny,nz);
        
        

    </script>

    <script language="javascript" for="zzz" event="OnPickGeometry(id)">
	
    //alert(id);        
    
    EventOnPickGeometry(id);
        

    </script>
    
    </script>

    <script language="javascript" for="zzz" event="OnUpdateGeometry(id)">
        EventOnUpdateGeometry(id);
    </script>
    



<script LANGUAGE="javascript" FOR="zzz" EVENT="OnPopuyButtonClick(strLayerName,strID,strText,buttonIndex)">
	 
	 alert(strLayerName+":"+strID+":"+buttonIndex);
</script>


<script LANGUAGE="javascript" FOR="zzz" EVENT="OnLayerLoad(strLayerName,bOK)">
	 
    EventOnLayerLoad(strLayerName,bOK);
    
    
</script>



<script LANGUAGE="javascript" FOR="zzz" EVENT="GetPickPosition(x,y,z)">
     if(Global.bPros.value == 0)
	 {
		Global.bPros.value = 1;
		posx1=x;		posy1=y;		posz1=z;
	 }else
	 {
		Global.bPros.value = 0;
		posx2=x;		posy2=y;		posz2=z;
	 }
	 
	 alert(x+" "+y+" "+z);
	 
	 
	 
	 
</script>

<script LANGUAGE="javascript" FOR="zzz" EVENT="GetPickPosNormal(strLayerName, nObjectID, fX, fY, fZ, fNX, fNY, fNZ)">
     alert("LayerName : " + strLayerName + " nObjectID : " + nObjectID +  " pos : " + fX + ", " + fY + ", " + fZ + " nor : " + fNX + ", " + fNY + ", " + fNZ);
</script>

</script>

<script LANGUAGE="javascript" FOR="zzz" EVENT="OnBusNaviClickEnd()">
     EventOnBusNaviClickEnd();
</script>


</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<!-- <div id="logo" style="left:60px;top:300px;width:129px;height:51px;position:absolute; z-index:14"> -->
<!-- 	<iframe width="100%" height="100%" src="" style="filter: Alpha(Opacity=0);" scrolling="no" frameborder="0" ></iframe> -->
<!-- 	<img style="left:0px;top:0px;position:absolute" src="F:\\doc\\Talknow-Downloads\\test_png.png" class="png24" /> -->
<!-- </div> -->

	<form name="Global">
	<input type="hidden" name="bPros" value="0">
	<input type="hidden" name="posx1" value="">
	<input type="hidden" name="posy1" value="">
	<input type="hidden" name="posz1" value="">
	<input type="hidden" name="posx2" value="">
	<input type="hidden" name="posy2" value="">
	<input type="hidden" name="posz2" value="">
	<input type="hidden" name="str" value="">
	

	</form>



	<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
		<tr height="18" id="group0" style="display:''">
			<td>
				<table cellpadding="0" cellspacing="0" border="1" bordercolor="#66668C" width="100%" height="100%" >
				<form name="input">
					<tr>
						<td><a href="javascript:LoadTerrain();">지형열기</a></td>
						<td><a href="javascript:LoadTerrain1();">지형열기광명</a></td>
						<td><a href="javascript:LayerTree();">레이어트리</a></td>
						<td><a href="javascript:LoadGrid();">그리드</a>	</td>
						<td><a href="javascript:LoadWFS();">WFS</a>	</td>
						<td><a href="javascript:LoadTexureLayer();">텍스처레이어열기</a>	</td>
						<td><a href="javascript:TextureUpdate();">업데이트맵</a>	</td>
						<td><a href="javascript:CamFit();">FIT</a>	</td>
						<td><a href="javascript:TerrainShow();">지형보기</a>	</td>
						<td><a href="javascript:TerrainHide();">지형숨기기</a>	</td>
                        <td><a href="javascript:BuildingShow();">건물보기</a>	</td>
                        <td><a href="javascript:BuildingHide();">건물숨기기</a>	</td>
						
						<td><a href="javascript:ModeRotate();">회전모드.</a></td>
						<td><a href="javascript:ModeDist();">거리모드</a></td>
						<td><a href="javascript:ModeArea();">영역모드</a></td>
                        <td><a href="javascript:ModePickobj();">객체선택</a></td>
						<td><a href="javascript:RenderTypeWire();">와이어</a></td>
						<td><a href="javascript:RenderTypeSolid();">솔리드</a>	</td>
						<td><a href="javascript:ScreenSave();">화면저장.</a></td>
						<td><a href="javascript:Test_Dlg();">DLG</a></td>
						<td><a href="javascript:CamPos();">카메라위치</a></td>
						<td><a href="javascript:CamNorth();">정북방향</a></td>
						
					</tr>
				</form>
				</table>
			</td>
		</tr>
		<tr height="18" id="group1" style="display:''"> 
			<td>
				<table cellpadding="0" cellspacing="0" border="1" bordercolor="#66668C" width="100%" height="100%">
				<form name="input">
					<tr>
						<td><a href="javascript:Test_MouseMode();">마우스모드</a></td>
						<td><a href="javascript:Test1();">테스트1</a></td>
                        <td><a href="javascript:Test2();">테스트2</a></td>
                        <td><a href="javascript:Test3();">테스트3</a></td>
						<td><a href="javascript:Test4();">테스트4</a></td>
						<td><a href="javascript:Test5();">서울생성</a></td>
						<td><a href="javascript:Test6();">서울삭제</a></td>
						<td><a href="javascript:Test7();">테스트-ShpFilter</a></td>
						<td><a href="javascript:Test_AdminBound();">텍스트표현</a></td>
						<td><a href="javascript:Test_TunnelOpen();">터널 오픈</a></td>
						<td><a href="javascript:Test_TunnelMoving();">터널 이동</a></td>
						<td><a href="javascript:Test_TunnelClose();">지형 복귀</a></td>
						<td><a href="javascript:Test_LayerSave();">save</a></td>
						<td><a href="javascript:Test_LayerClear();">clear</a></td>
						<td><a href="javascript:Test_LayerOpen();">open</a></td>
						<td><a href="javascript:Test_AnalysisStart();">시작</a></td>
						<td><a href="javascript:Test_AnalysisEnd();">종료</a></td>
					</tr>
				</form>
				</table>
			</td>
		</tr>
		
		<tr height="18" id="group4" style="display:''">
			<td>
				<table cellpadding="0" cellspacing="0" border="1" bordercolor="#66668C" width="100%" height="100%">
				<form name="input">
					<tr>

						<td><a href="javascript:ObjMoveX();">선택객체이동X.</a></td>
						<td><a href="javascript:ObjMoveY();">선택객체이동Y.</a></td>
						<td><a href="javascript:ObjMoveZ();">선택객체이동Z.</a></td>
						<td><a href="javascript:ObjRotX();">선택객체회전X</a></td>
						<td><a href="javascript:ObjRotY();">선택객체회전Y</a></td>
						<td><a href="javascript:ObjRotZ();">선택객체회전Z</a></td>
						<td><a href="javascript:ObjRotInit();">선택객체회전초기화</a></td>
						<td><a href="javascript:ObjScale();">선택객체크기</a></td>
						<td><a href="javascript:ObjTexApply();">선택객체텍스처</a></td>
                        <td><a href="javascript:ObjRemove();">선택객체삭제</a></td>
					</tr>
				</form>
				</table>
			</td>
		</tr>
		
		
		
		<tr>
			<td>
                <Object width="100%" height="100%" id="zzz" classid="clsid:C9320467-644F-43DA-B3FB-B23342B4EAF0" #version=1,0,0,0"></Object>
			</td>
		</tr>
		
		
		
		<tr height ="18">
			<td>
				
				<table cellpadding="0" cellspacing="0" border="1" bordercolor="FFFFFF" width="100%" height="100%">
				<form name="result">
					<tr>
						</td>
						<td width="480">
							function returns :: <input type="text" name="resultValue" value="" style="height:18px; width:360px; border:solid 1px;">
						</td>
						<td width="*" align="right">
							function Group
							<select name="functionGroup" style="height:18px; width:180px; border:solid 1px;" onchange="javascript:ShowFunctions(options[selectedIndex].value);">
								<option value="0">테스트</option>
								<option value="1">도로/침수</option>
								<option value="2">평면/지형</option>
								<option value="3">건물/일조권</option>
							</select>
						</td>

						<td width="*" align="right">
							function Group
							<select name="taskGroup" style="height:18px; width:180px; border:solid 1px;" onchange="javascript:TaskFunctions(options[selectedIndex].value);">
								<option value="0">평면계획:직접입력</option>
								<option value="1">평면계획:Shp</option>
								<option value="2">평면계획:이미지</option>
								<option value="3">지형</option>
								<option value="4">건물</option>
								<option value="5">도로</option>
								<option value="6">시설물</option>
								<option value="7">조망권</option>
								<option value="8">가시권</option>
								<option value="9">일조권</option>
								<option value="10">광고물</option>
								<option value="11">가로등</option>
								<option value="12">침수</option>
								
								
							</select>
						</td>
						
                        <td width="*" align="right">
							mouse click mode 
                            <select name="MouseClickMode" style="height:18px; width:180px; border:solid 1px;" onchange="javascript:SetMouseClickMode(options[selectedIndex].value);">
                                <option value="1000">normal</option>
                                <option value="1001">picking</option>
                                <option value="1002">length</option>
                                <option value="1003">area</option>
                                <option value="1004">get_height</option>
                                <option value="1005">get_pickinfo</option>
                                <option value="1006">cross_section</option>
                                <option value="1007">buffer_point</option>
                                <option value="1008">visiblitity</option>
                                <option value="1009">prospect</option>
                                <option value="1010">draw_naviline</option>
                                <option value="1011">locate_model</option>
                                <option value="1012">get_location</option>
                                <option value="1013">set_path_start</option>
                                <option value="1014">set_path_end</option>
                                <option value="1015">skyline</option>
                                <option value="1021">getsrcpoint</option>
                                <option value="1022">getdstpoint</option>
                                <option value="1023">getsrcpoint2</option>
                                <option value="1024">draw_boundbox</option>
                                <option value="1025">draw_boundsphere</option>
                                <option value="1026">draw_area</option>
								<option value="1027">draw_building</option>
								<option value="1028">sunlightanal</option>
                                <option value="1029">get_picknormal</option>
                                <option value="1030">frood_area</option>
                                <option value="1031">arrange_effect</option>
								<option value="1032">arrange_text</option>
                                <option value="1033">draw_curve</option>
                                <option value="1034">pick_iconinfo</option>
                                <option value="1035">street_light</option>
                                <option value="1036">fire_area</option>
                                <option value="1037">edit_mapping_object</option>
                                <option value="1038">draw_polygon</option>
                                <option value="1039">draw_line</option>
                                <option value="1040">edit_terrain</option>
                                <option value="1041">edit_road_start</option>
                                
                            </select>
                        </td>
                        <td width="*" align="right">
							mouse double click mode 
                            <select name="MouseDblClickMode" style="height:18px; width:180px; border:solid 1px;" onchange="javascript:SetMouseDblClickMode(options[selectedIndex].value);">
                                <option value="1000">normal</option>
                                <option value="1001">picking</option>
                                <option value="1002">length</option>
                                <option value="1003">area</option>
                                <option value="1004">get_height</option>
                                <option value="1005">get_pickinfo</option>
                                <option value="1006">cross_section</option>
                                <option value="1007">buffer_point</option>
                                <option value="1008">visiblitity</option>
                                <option value="1009">prospect</option>
                                <option value="1010">draw_naviline</option>
                                <option value="1011">locate_model</option>
                                <option value="1012">get_location</option>
                                <option value="1013">set_path_start</option>
                                <option value="1014">set_path_end</option>
                                <option value="1015">skyline</option>
                                <option value="1021">getsrcpoint</option>
                                <option value="1022">getdstpoint</option>
                                <option value="1023">getsrcpoint2</option>
                                <option value="1024">draw_boundbox</option>
                                <option value="1025">draw_boundsphere</option>
                                <option value="1026">draw_area</option>
								<option value="1027">draw_building</option>
								<option value="1028">sunlightanal</option>
                                <option value="1029">get_picknormal</option>
                                <option value="1030">frood_area</option>
                                <option value="1031">arrange_effect</option>
								<option value="1032">arrange_text</option>
                                <option value="1033">draw_curve</option>
                                <option value="1034">pick_iconinfo</option>
                                <option value="1035">street_light</option>
                                <option value="1036">fire_area</option>
                                <option value="1037">edit_mapping_object</option>
                                <option value="1038">draw_polygon</option>
                                <option value="1039">draw_line</option>
                                <option value="1040">edit_terrain</option>
                                <option value="1041">edit_road_start</option>
                            </select>
                        </td>
						<td>
						</td>
					</tr>
				</form>
				</table>
				
			</td>
		</tr>
	</table>




</body>
</html>





